Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WHM Excessive resource usage warning

Posted on 2015-02-20
17
Medium Priority
?
624 Views
Last Modified: 2015-02-23
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
Comment
Question by:myyis
  • 6
  • 6
  • 5
17 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 40622568
Depends on system memory you have and what is that php doing.
It could be normal memory size of php process too.
0
 
LVL 29

Expert Comment

by:fibo
ID: 40623128
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
 
LVL 1

Author Comment

by:myyis
ID: 40623478
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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 62

Expert Comment

by:gheist
ID: 40623916
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
 
LVL 29

Expert Comment

by:fibo
ID: 40623935
What Is the result with 500?
0
 
LVL 1

Author Comment

by:myyis
ID: 40624116
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
 
LVL 62

Expert Comment

by:gheist
ID: 40624139
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
 
LVL 1

Author Comment

by:myyis
ID: 40624333
So you suggest to put the limit to 400?
0
 
LVL 29

Assisted Solution

by:fibo
fibo earned 1000 total points
ID: 40624410
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
 
LVL 62

Accepted Solution

by:
gheist earned 1000 total points
ID: 40624579
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
 
LVL 1

Author Closing Comment

by:myyis
ID: 40625301
Thank you both
0
 
LVL 29

Expert Comment

by:fibo
ID: 40625569
B-) glad we could help, thx for the grade and points.

Any "SELECT *" ?
0
 
LVL 1

Author Comment

by:myyis
ID: 40625610
Yes there are :)
0
 
LVL 62

Expert Comment

by:gheist
ID: 40626022
Help them ;)
0
 
LVL 29

Expert Comment

by:fibo
ID: 40626143
Can You change them with the fields names?
0
 
LVL 1

Author Comment

by:myyis
ID: 40626764
Yes I did.
0
 
LVL 62

Expert Comment

by:gheist
ID: 40626775
Wait for next nightly run. Lets hope it does not xceed trigger.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question