[PERL] снимать нагрузку для apache perl
Добавлено: 2008-05-16 19:19:48
как снимать нагрузку с ЦП, load Average, processes для каждого виртуального хоста apache?? пишу на perl
может есть модуль?
может есть модуль?
Танки встречай шквалом огня, твёрдо запомни - горит и броня
https://forum.lissyara.su/
всмысле?zg писал(а):можно, если на каждый виртуальный хост у тебя свой процесс апача
Код: Выделить всё
GTop::ProcUid
GTop::ProcMem
Код: Выделить всё
# cpan -i GTop
....
GTop.c: In function 'XS_GTop__Loadavg_loadavg':
GTop.c:1529: error: 'GTop__Loadavg' undeclared (first use in this function)
GTop.c:1529: error: expected ';' before 'self'
GTop.xs:573: warning: ISO C90 forbids mixed declarations and code
GTop.c:1538: error: 'self' undeclared (first use in this function)
GTop.c: In function 'XS_GTop__ProcState_cmd':
GTop.c:1566: error: 'GTop__ProcState' undeclared (first use in this function)
GTop.c:1566: error: expected ';' before 'state'
GTop.c:1567: warning: ISO C90 forbids mixed declarations and code
GTop.c:1572: error: 'state' undeclared (first use in this function)
GTop.c: In function 'XS_GTop__ProcState_state':
GTop.c:1591: error: 'GTop__ProcState' undeclared (first use in this function)
GTop.c:1591: error: expected ';' before 'state'
GTop.c:1592: warning: ISO C90 forbids mixed declarations and code
GTop.c:1597: error: 'state' undeclared (first use in this function)
GTop.c: In function 'XS_GTop__ProcState_uid':
GTop.c:1616: error: 'GTop__ProcState' undeclared (first use in this function)
GTop.c:1616: error: expected ';' before 'state'
GTop.c:1617: warning: ISO C90 forbids mixed declarations and code
GTop.c:1622: error: 'state' undeclared (first use in this function)
GTop.c: In function 'XS_GTop__ProcState_gid':
GTop.c:1641: error: 'GTop__ProcState' undeclared (first use in this function)
GTop.c:1641: error: expected ';' before 'state'
GTop.c:1642: warning: ISO C90 forbids mixed declarations and code
GTop.c:1647: error: 'state' undeclared (first use in this function)
*** Error code 1
Stop in /root/.cpan/build/GTop-0.16.
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible