Find the answer to your Linux question:
Results 1 to 2 of 2
Hello There ia a perl scrip that uses 80% of the cpu. top: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 28917 apache 25 0 5496 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    2

    perl causes 80% Cpu usage


    Hello

    There ia a perl scrip that uses 80% of the cpu.

    top:

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND

    28917 apache 25 0 5496 3036 1288 R 49.3 0.3 44:26.88 perl


    I use debian, Direct Admin cp,

    How can i kill the command?
    How can i find the script that causes the problem?
    Can i disable perl?
    Where can i find guidlines of optimizing httpd.conf and php.ini ??

    Also how can i change the language of apache dates? I tried to change httpd.conf but no luck. I am newbie and i can find out the answers at forums!

    Thank you

  2. #2
    Just Joined!
    Join Date
    Jun 2006
    Location
    (.)
    Posts
    69
    Hi,


    How can i kill the command?
    kill -9 <PID>

    http://forums.linuxwebadmin.info/ind...opic,51.0.html

    How can i find the script that causes the problem?
    Get the process id of running perl script and find the files opened by and users who are using it.

    lsof -p <PID>
    or
    lsof -i 4 -a -p <PID>

    Can i disable perl?
    just take off the execute permission for other users, or set it to as mentioned below:

    chmod 750 <perl path>

    Where can i find guidlines of optimizing httpd.conf and php.ini ??
    Please check the below mentioned URLs:
    http://forums.linuxwebadmin.info/ind...opic,37.0.html - for httpd.conf
    http://forums.linuxwebadmin.info/ind...opic,54.0.html - for php.ini

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •