Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 734
  • Last Modified:

WHM Excessive resource usage warning

I got this warning from the server.
Is it an important problem? How can I reset the virtual memory in WHM if I have to do.
Note that  It is not possible to change the code in Report1.php

Thank you

Resource:     Virtual Memory Size
Exceeded:     235 > 200 (MB)
Executable:   /usr/bin/php
Command Line: /usr/bin/php /home/ccc/public_html/Report1.php
0
myyis
Asked:
myyis
  • 6
  • 6
  • 5
2 Solutions
 
gheistCommented:
Depends on system memory you have and what is that php doing.
It could be normal memory size of php process too.
0
 
fiboCommented:
What is the memory limit of your php as given by php_info()?
Looks like it is currently 200M...

How much RAM is available on the server (Linux or Windows) which runs your script?
0
 
myyisAuthor Commented:
At ConfigServer Security says

"This User Process Tracking option sends an alert if any cPanel user process
exceeds the memory usage set (MB). To ignore specific processes or users use
csf.pignore

Set to 0 to disable this feature
PT_USERMEM =  Default: 100 [0-500]"

So I have set that 500 .
Is that ok?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
gheistCommented:
You should dig into detail why PHP uses >200MB of RAM.. Sooner or later it will grow over your RAM

I;d say you need to overhaul upload forms.
Leave the threshold as it is.
0
 
fiboCommented:
What Is the result with 500?
0
 
myyisAuthor Commented:
I don't get more warning.
I was getting the memory warning because Report1.php need excessive amount or memory (It needs temp tables in some MySQL queries)


Resource:     Virtual Memory Size
Exceeded:     235 > 200 (MB)
Executable:   /usr/bin/php
Command Line: /usr/bin/php /home/ccc/public_html/Report1.php
0
 
gheistCommented:
It is not about temp tables. process itself was using >200MB RAM.
It sounds reasonable consumption though.... You should wory when 400MB PHP arrives from the web side
0
 
myyisAuthor Commented:
So you suggest to put the limit to 400?
0
 
fiboCommented:
You should investigate WHY you need all that memory. Might be OK or some design error.
Eg, if lots of large images processing, you Will need lots of ram.

You mention however some "temp tables". Are U using some readings from SQL databases? If yes, check that you have no "SELECT *" queries, and replace all the * with the detailed field names.
0
 
gheistCommented:
Iti s not a limit as such. It is just when WHM warns you.
Yes it is possible to make PHP run at 200MB ram with lazy programming.
0
 
myyisAuthor Commented:
Thank you both
0
 
fiboCommented:
B-) glad we could help, thx for the grade and points.

Any "SELECT *" ?
0
 
myyisAuthor Commented:
Yes there are :)
0
 
gheistCommented:
Help them ;)
0
 
fiboCommented:
Can You change them with the fields names?
0
 
myyisAuthor Commented:
Yes I did.
0
 
gheistCommented:
Wait for next nightly run. Lets hope it does not xceed trigger.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 6
  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now