Solved

WHM Excessive resource usage warning

Posted on 2015-02-20
17
337 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
 

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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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
 

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
 

Author Comment

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

Assisted Solution

by:fibo
fibo earned 250 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 250 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
 

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
 

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
 

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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Suggested Solutions

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
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…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

710 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