Jump to content

[SOLVED] Maxxing out the CPU 96% and using loads of ram


Recommended Posts

Hi,

We had a new site built www.wonderlandwigs.com in prestashop in September and as soon as it was lunched we have had massive problems.

After further investigation we noticed every now and then it was using 100% of the cpu and 100% of the Ram.

We then agreed after looking in the forums we needed to have the site upgraded to 1.4.9.0

Because the older version was known to have bugs that could make this problem happen.

This did not fix it so we changed over to a dedicated server with lots more power. Double the ram 4gb its running max about 3.5gb and still 94% cpu

User Domain % CPU Process wonderla wonderlandwigs.com 94.3 /usr/bin/php /home/wonderla/public_html/category.php

wonderla wonderlandwigs.com 93.8 /usr/bin/php /home/wonderla/public_html/category.php

wonderla wonderlandwigs.com 92.5 /usr/bin/php /home/wonderla/public_html/category.php

Prestashop version 1.4.9 with custom template (attached) with SSL

Server snapshop(WHM):

PHP info;

http://awesomescreenshot.com/03fm49a28

Server info:

MySQL version : 5.1.65-cll

Architecture: x86_64

Perl version: 5.10.1

Apache version: 2.2.23

Please can you take a look???

Thanks Sam x

Link to comment
Share on other sites

Top Processes

User

Domain

% CPU

Process

wonderla

wonderlandwigs.com

99.2

/usr/bin/php /home/wonderla/public_html/category.php

wonderla

wonderlandwigs.com

98.8

/usr/bin/php /home/wonderla/public_html/category.php

wonderla

wonderlandwigs.com

97.8

/usr/bin/php /home/wonderla/public_html/category.php

 

 

We have around 350 products

 

Disk information

Device

Mount point

Usage

/tmp

/var/tmp

4% (68,992 of 2,064,208)

 

/dev/sda3

/tmp

4% (68,992 of 2,064,208)

 

/dev/sda1

/

11% (525,216 of 5,160,576)

 

/dev/sda5

/var

3% (808,992 of 25,803,068)

 

/dev/sda7

/home

2% (2,674,560 of 182,561,972)

 

/dev/sda6

/usr

19% (3,718,348 of 20,642,428)

Link to comment
Share on other sites

How long has your shop been running? How many customers do you have? Do you know how many products in total you have? How many carts do you have? Do you have cache on and force compile off?

 

Edit:

I can take a look at it, but I would need admin access. Also you should be using rich snippets since you have things like ratings and reviews on the page. But with 350 products you shouldn't be taking up that much resources

Edited by DesignHaus42 (see edit history)
Link to comment
Share on other sites

Yes, I have SSH access, I have attached errorlog file to this thread. there are few errors but not sure related to CPU issue we are having. Can you have a look at it for me?

 

I dont know how to RUN a strace on the sever though

 

Thank you so much

xxx Sam

error_log.txt

Edited by wonderland-wigs (see edit history)
Link to comment
Share on other sites

Come on guys I relay need to get to the bottom of this. Can any of you recommend a company who would be able to fix this problem for me?

 

Thanks Sam x

 

you don't answer for my questions, so how can i help you? moreover - i send you email without any response from you... so how we can help you if you dont answer us? :(

Link to comment
Share on other sites

On another note, your db overhead is too high for some reason, try truncating your db, 75mb is too much for what you have. I have one client with 30k customers and 45k addresses, and their db is only 35mb. I have another with over 100 products, with each product having 20 images linked to each product and around 1k combos per product, their db is only like 25mb, they don't have as many customers as the other site.

Link to comment
Share on other sites

Hy!

 

I'm having the same problem, Cpu usage around 96%, and Entry processes 22. The weird thing is, that we went online 3 days ago, and we got only like 60 products...

 

the url: http://winteroutlet.ro/ - Prestashop 1.5.2

 

- force compile off

- cache off - because other reasons I reffered to here.

Edited by imokweb (see edit history)
Link to comment
Share on other sites

No, it was an 1.5.1 and then i updated it to 1.5.2 with the help of the automatic update module.

 

I just noticed that there is a 'www' folder, containing three times more files than in the public_html. Is this normal? When we went live, I accidentally typed in "www." before the domain name in the ps settings. Ps warned me, I changed it. Could this miss-type have done this?

Link to comment
Share on other sites

www.wonderlandwigs.com

 

The site started on a shared server and every now and then it would use 100% of the CPU and 100% of 1 GB of Ram. This made our services go down every now and then.

 

Next step was to update to later version of CMS 1.4.9.0 BUT HAD NO CHANGE

 

Then moved over to a dedicated server with 4 GB of ram, it’s now running about 20% ram and every now and then the cpu shoots up to 98% but most of the time it sits around 0.28 (2 cpus)

 

We setup the old server as a media server to speed up page loading times.

 

The site was built with a custom template.

 

Everything points to the

/usr/bin/php /home/wonderla/public_html/category.php file.

 

I have spoken to the server company at the time it was doing this and they said

 

( 77440 | wonderla_wigs | localhost | wonderla_wonderwigs | Sleep | 2119 |

The above database is creating sleep connections.

 

This file seems to be fine all day and when our site gets busy or its being crawled by bots this file will lock on around 98% CPU and then the site starts to run really slow.

If this happens when people are paying, Sagepay is unable to receive confirmation information; it makes five attempts and receives no response then rejects the payment.

 

Any advise appreciated

Link to comment
Share on other sites

www.wonderlandwigs.com

 

The site started on a shared server and every now and then it would use 100% of the CPU and 100% of 1 GB of Ram. This made our services go down every now and then.

 

Next step was to update to later version of CMS 1.4.9.0 BUT HAD NO CHANGE

 

Then moved over to a dedicated server with 4 GB of ram, it’s now running about 20% ram and every now and then the cpu shoots up to 98% but most of the time it sits around 0.28 (2 cpus)

 

We setup the old server as a media server to speed up page loading times.

 

The site was built with a custom template.

 

Everything points to the

/usr/bin/php /home/wonderla/public_html/category.php file.

 

I have spoken to the server company at the time it was doing this and they said

 

( 77440 | wonderla_wigs | localhost | wonderla_wonderwigs | Sleep | 2119 |

The above database is creating sleep connections.

 

This file seems to be fine all day and when our site gets busy or its being crawled by bots this file will lock on around 98% CPU and then the site starts to run really slow.

If this happens when people are paying, Sagepay is unable to receive confirmation information; it makes five attempts and receives no response then rejects the payment.

 

Any advise appreciated

 

 

You don't answer for my questions that i sent to you by mail and PM. You want help, but when we answer and write that you must give us specific informations - you don't respond.

Link to comment
Share on other sites

Hey guys,

 

Sorry to hijack this thread.

 

I seem to be having the same issue with a slow website, except when I disable blockcategories module, the site runs as normal and isn't slow anymore. I have obviously narrowed it down to the module and I have tried some fixes that have been suggested in other threads, but to no avail.

 

Any suggestions?

 

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

This thread is so funny. With all due respect to wonderland-wigs. I've never seen so much help given to any previous poster. And all the other people that tried in vain too find help in this thread ... just completely ignored. True, they should start another thread perhaps ...

 

Lesson learned. Find an attractive Avatar. Then ask your question. <_<

Edited by Bill Dalton (see edit history)
  • Like 3
  • Haha 2
Link to comment
Share on other sites

  • 2 months later...

I sent you a pm with my skype id in it.

 

i saw you know a lot about this issue, and i will be very thankful for your help.

my domain is www.notax.co.il

i have 1400 products in my shop

i have vps server

the site is working very very slow when there are more then 30 visitors online.

 

i saw many calls from this functions:

ProductCore::getProductsProperties

ConfigurationCore::get

JSMin::get

ConfigurationCore::get

JSMin::action

nl2br2

 

and from smarty:

Smarty_Internal_Templateparser::yy_is_expected_token

Smarty_Internal_Templatelexer::yylex2

Smarty_Internal_Templateparser::yy_reduce

Smarty_Internal_Templateparser::yy_find_shift_action

Smarty_Internal_Templateparser::yy_find_reduce_action

 

thank you

hope to solve it soon

Link to comment
Share on other sites

×
×
  • Create New...