LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ? high server load + sites being unaccessible so many times in the day (https://www.linuxquestions.org/questions/linux-server-73/high-server-load-sites-being-unaccessible-so-many-times-in-the-day-756526/)

abefroman 09-21-2009 09:38 AM

Quote:

Originally Posted by woshka (Post 3691720)
root@linux [~]# wget http://amos.freeshell.org/userbeans.sh
--09:39:44-- http://amos.freeshell.org/userbeans.sh
Resolving amos.freeshell.org... 192.94.73.30
Connecting to amos.freeshell.org|192.94.73.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11681 (11K) [application/x-sh]
Saving to: `userbeans.sh'

100%[==================================================================================================== ================>] 11,681 10.5K/s in 1.1s

09:39:45 (10.5 KB/s) - `userbeans.sh' saved [11681/11681]

root@linux [~]# userbeans.sh +a
-bash: userbeans.sh: command not found

chmod 700 userbeans.sh
./userbeans.sh +a

dlugasx 09-21-2009 09:40 AM

Quote:

Originally Posted by woshka (Post 3691720)
root@linux [~]# wget http://amos.freeshell.org/userbeans.sh
--09:39:44-- http://amos.freeshell.org/userbeans.sh
Resolving amos.freeshell.org... 192.94.73.30
Connecting to amos.freeshell.org|192.94.73.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11681 (11K) [application/x-sh]
Saving to: `userbeans.sh'

100%[==================================================================================================== ================>] 11,681 10.5K/s in 1.1s

09:39:45 (10.5 KB/s) - `userbeans.sh' saved [11681/11681]

root@linux [~]# userbeans.sh +a
-bash: userbeans.sh: command not found

ehhhhhhhhhh...

Quote:

root@linux [~]# chmod a+x userbeans.sh

root@linux [~]# ./userbeans.sh +a

ehhhhhhhhhhhhhhhhhh

woshka 09-21-2009 09:40 AM

root@linux [~]# chmod 700 userbeans.sh
root@linux [~]# ./userbeans.sh +a
for non-root users, /proc/user_beancounters required via stdin
root@linux [~]#

woshka 09-21-2009 09:41 AM

for non-root users, /proc/user_beancounters required via stdin

dlugasx 09-21-2009 09:47 AM

Quote:

Originally Posted by woshka (Post 3691730)
for non-root users, /proc/user_beancounters required via stdin


execute this like a root...

Quote:

root@linux [~]# su -

root@linux [~]# chmod a+x userbeans.sh

root@linux [~]# ./userbeans.sh +a

woshka 09-21-2009 09:48 AM

root@linux [~]# su -
root@linux [~]# chmod a+x userbeans.sh
root@linux [~]# ./userbeans.sh +a
for non-root users, /proc/user_beancounters required via stdin
root@linux [~]#

carltm 12-05-2009 12:07 PM

I found the problem in line 225.

Try replacing that line with this:

if [ "`whoami`" != root ] ; then


Abefroman, can you tell us more about this script or point
us to some web resources?

What are userbeans?

What program(s) creates userbeans?

How can you use this info for diagnostics? (Although the
answer to this may be obvious after seeing a sample output)

abefroman 12-05-2009 12:20 PM

Quote:

Originally Posted by carltm (Post 3781013)
I found the problem in line 225.

Try replacing that line with this:

if [ "`whoami`" != root ] ; then


Abefroman, can you tell us more about this script or point
us to some web resources?

What are userbeans?

What program(s) creates userbeans?

How can you use this info for diagnostics? (Although the
answer to this may be obvious after seeing a sample output)

This is kinda a dead thread, but the userbeans are for vps servers only and I think specifically virtuozzo.


All times are GMT -5. The time now is 07:22 AM.