WordPress.org

Ready to get started?Download WordPress

Forums

index.php load (26 posts)

  1. kakajoe
    Member
    Posted 2 years ago #

    anybody can help me?? why my index.php load very extreme??
    this is my screen capture
    http://www.slank.com/fbml/report.jpg

    thanks for the help

  2. dgilmour
    Member
    Posted 2 years ago #

    That screen is extremely poor; the figures displayed cannot be true percent CPU figures for a single processor because they add up to well over 200%. If you've got command line access, maybe use top to get a second opinion?

    Also, you don't say if the site has a performance problem.

  3. kakajoe
    Member
    Posted 2 years ago #

    thanks for the reply...
    this is the TOP result

    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    13362 slank     15   0  161m  56m 7444 R 56.4  0.4   0:01.84 php
    13349 slank     16   0  164m  59m 7960 S 41.3  0.4   0:01.55 php
    31879 nobody    16   0 97692 6844 2552 S  1.3  0.0   0:00.11 httpd
     3463 nobody    15   0 97004 6196 2092 S  0.7  0.0   0:00.87 httpd
     6062 mysql     15   0  362m  52m 4544 S  0.7  0.3  28:57.51 mysqld
     3222 slank     15   0  162m  57m 8000 S  0.3  0.4   0:06.21 php

    about the performance of my site, it resulting error sometime it turn to be blank white, 505 and when i check the error_log it says

    (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/xxx/xxx/index.php

    thanks again

  4. dgilmour
    Member
    Posted 2 years ago #

    This could indicate that your server resources aren't adequate for what you're asking it to do, or that PHP hasn't been allocated enough memory. Unfortunately, you haven't told us about either of these, so it's going to be hard for anyone to advise you.

    Can you describe the server environment you're using? Is it a dedicated server, or shared? If shared, are there limits on CPU or memory use? If it's a dedicated server, what specification is it (especially memory)? How much memory is allocated to PHP?

    Can you describe the workload, too? Is it a standard, vanilla installation, for example, or many plugins? How many sites are there, and how many users? How heavily used is it?

    This thread may help.

  5. kakajoe
    Member
    Posted 2 years ago #

    thanks for the answer
    Im using JaguarPC VPS Enterprise
    1. Diskspace : 150 GB / Ram 3072 MB

    2. when cat /proc/user_beancounters this the result

    uid  resource                     held              maxheld              barrier                limit              failcnt
         1008:  kmemsize                 60405970             61564290             65536000             65536000              2367855
                lockedpages                     0                    0                 4096                 4096                   30
                privvmpages                715522               752821              1048576              1048576                    8
                shmpages                      670                  670               131072               131072                    0
                dummy                           0                    0  9223372036854775807  9223372036854775807                    0
                numproc                       239                  246                  400                  400                    0
                physpages                  610306               646007                    0           2147483647                    0
                vmguarpages                     0                    0               524288           2147483647                    0
                oomguarpages               610313               646013               134216           2147483647                    0
                numtcpsock                    121                  131                  500                  500                    0
                numflock                        6                    6                  200                  220                    0
                numpty                          1                    1                   64                   64

    3. Can you describe the workload, too? Is it a standard, vanilla installation, for example < I dont know, how can i know this??
    my VPS only has 5 website active.

    4. Do I must to upgrade my PHP too ??

    once again..many, many thanks for your help

  6. That should be enough RAM (it's more than twice what I have for a server with 6 sites, two of which are multisite).

    What version of PHP are you running, and what FLAVOR? SuPHP, FastCGI, etc etc.

  7. kakajoe
    Member
    Posted 2 years ago #

    @ipstenu : would tell me how can i fine the FLAVOR ?? i think SUPHP, because i post before i receiving error log
    (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/xxx/xxx/index.php

  8. That'd do it. And that'd... well. Do it. SuPHP is a hog.

    (You can look on a phpinfo() page to find all the details, BTW)

  9. kakajoe
    Member
    Posted 2 years ago #

    so..what must i do to fix my problem?

  10. Start with turning off all your plugins, see what happens.

  11. kakajoe
    Member
    Posted 2 years ago #

    including buddypress ?

  12. Oh. BuddyPress.

    *sigh* Yeah, BuddyPress uses a lot of memory, and can totally gork SuPHP.

    See if it's possible to switch to DSO, or FastCGI.

  13. kakajoe
    Member
    Posted 2 years ago #

    btw, this "error" also make my categories gone...i must to restart than my categories come back..

  14. kakajoe
    Member
    Posted 2 years ago #

    i try to deactive all the plugin, and when i visit my website,i receiving this error message
    ---------------------------------
    l error: Call to undefined function bp_is_blog_page() in /xxx/xxx/xxx/wp-content/themes/slank-main/header.php on line 65
    ---------------------------------

  15. kakajoe
    Member
    Posted 2 years ago #

    now im testing with only buddypress active..

  16. kakajoe
    Member
    Posted 2 years ago #

    See if it's possible to switch to DSO, or FastCGI <- how can i do this??

  17. If you don't know, ask your webhost.

  18. kakajoe
    Member
    Posted 2 years ago #

    I already switch to DSO and FastCGI, and still have this problem...
    JaguarPC said it was my theme cause the CPU load 100%...
    now the suspect is wp-includes/general-template.php, when im using suphp the suspect index.php in public_html..please help me

  19. btw, this "error" also make my categories gone...i must to restart than my categories come back..

    Wait, WHAT? What do you mean 'gone'? Where? From the front end or the back end?

    (if your host thinks it's your theme, switch to the default BuddyPress theme for a test).

  20. kakajoe
    Member
    Posted 2 years ago #

    what i mean is Gone from my backend and my post also gone in frontend, because im using looping called to selected category.

    I already switch my theme to index.html, and put my WP installer behind public_html, today i cant access my website, i must to reboot my VPS and i can see my website again.

  21. kakajoe
    Member
    Posted 2 years ago #

    the funny thing is before i switch to index.html, the staff from jaguar always quick respon answering pointing theres a problem in my wp script..
    now after i switch to index.html and my server still loading exteme (now when i write this oomguarpages and dcachesize is in the RED ZONE), they still not responing my question...

  22. Either your site is getting too much traffic, or your server is set up badly, that's really all I can guess at this point.

    How much web traffic is that server getting per day?

  23. kakajoe
    Member
    Posted 2 years ago #

    here the report from analog in my cpanel.

    ------------------------------
    Figures in parentheses refer to the 7-day period ending Mar 21 2012 at 7:12 PM.

    Successful requests: 36,514,104 (1,900,253)
    Average successful requests per day: 69,759 (271,464)
    Successful requests for pages: 2,329,412 (110,188)
    Average successful requests for pages per day: 4,450 (15,741)
    Failed requests: 2,846,125 (116,746)
    Redirected requests: 1,313,988 (109,700)
    Requests with informational status code: 10 (0)
    Distinct files requested: 60,548 (2,641)
    Distinct hosts served: 126,631 (6,847)
    Corrupt logfile lines: 22
    Data transferred: 378.00 gigabytes (19.75 gigabytes)
    Average data transferred per day: 739.49 megabytes (2.82 gigabytes)
    -------------------------

    this traffic when i switch to index.html

  24. Okay... I average 2/3rds your traffic give or take. I've had days where I increase by 400% (not a joke) and even with BuddyPress I've never had a problem.

    Have you put any caching on your server? Minimization on your WP code? I use W3 Total Cache (WP Super Cache is also good) to keep things down. Also my server has APC set up.

  25. kakajoe
    Member
    Posted 2 years ago #

    Im trying w3 Total Cache n WP Super Cache following the tutorial from wpbeginner, but it makes my JS not load perfectly. If u have a better tutorial for installing the W3 Total cache, please guide me...

    also im installing memchaced rether than APC.

    now im re-compile my apache and still using index.html not installing WP or anything in my public_html, i still got report "dcachesize" in RED ZONE and YELLOW ZONE.

  26. Start with just the Disk Enhanced caching, and don't minimize JS (just CSS) at first. Don't turn it ALL on at once, just step into it. It's very complicated.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.