SteelSeries graphs not consistent

After a lot of time, I have finally got the SteelSeries graphs working. My question -

When I hover over a gauge, the graph appears - sometimes on some of the graphs, but not always. See the 2 attached files created 1 minute apart…

http://www.cdcpcconsulting.com/Webster_Weather/steel.htm

Graph Test resolves all graphs:

http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html

Also, if the graph does not appear, if there is a selection (like MPH or KPH) and I click it, it sometimes triggers the graph.

Anyone have any thoughts on this?

Thank you

Craig


I see basically the same problem with the wxgraphs_test.html test page so it doesn’t look like a steel problem. Maybe try re-installing jpgraph? I’m not sure what else to suggest :frowning:


I notice the test page with multiple graphs loads very slowly, but graphs that are often problematic on the test page work consistently when accessed directly e.g. http://www.cdcpcconsulting.com/wxgraphs/windspeed_60min.php

Is your server short of resources maybe?

Thank you for the investigation. I will try and check on the server resource issue.

Have a good weekend.

Craig

The problem does seem to be when there are multiple graphs being requested. If you have cpanel it should have some useful info.

I set up a test page on my server hotlinking your graphs and I can only reliably show two graphs on the page, and more than two and it’s a crap shoot whether they will all show.

Thanks Nike - I have cpanel, but do not know what I am looking for. I have opened a ticket with Hostmetro (ISP) and we shall see what they say. If you would like to see cpanel for yourself, PM me and I will give you access.

What I did find is in the attachment.

Thanks again

Craig


As I recall in cpanel you should have a lot of stats on the left side like this screenshot I grabbed off the web, and there are also some graphs under Logs, Resource Usage.


I will post a screen shot. In the meantime after 2 back and forths, this is the latest response from them. Does this make sense??

Hello,
Thank you for contacting us.
I believe that it is a code related issue. Could you check this with your developer?
Upon checking, I could see that the following scripts which are using high memory resources.


cdcpccon 976928 14.0 0.0 261660 17784 ? R 09:41 0:00 /usr/bin/php /home/cdcpccon/public_html/wxgraphs/windgust_1hr.php
cdcpccon 976931 13.5 0.3 326940 81976 ? R 09:41 0:00 /usr/bin/php /home/cdcpccon/public_html/wxgraphs/winddir_24hr.php
cdcpccon 976939 20.0 0.1 327196 44068 ? R 09:41 0:00 /usr/bin/php /home/cdcpccon/public_html/wxgraphs/solar_24hr.php
cdcpccon 976940 20.0 0.1 327196 41132 ? R 09:41 0:00 /usr/bin/php /home/cdcpccon/public_html/wxgraphs/uv_24hr.php
If you have any other questions or concerns, please do not hesitate to contact us. It is always our pleasure to be of assistance.
Regards,
Philip W
http://www.hostmetro.com/
Knowledgebase: http://hostmetro.com/knowledgebase
Video Tutorials: http://hostmetro.com/demos/

Ticket ID: #989427
Subject: Server errors
Status: Answered
Ticket URL: https://secure.hostmetro.com/billing/viewticket.php?tid=989427&c=mkVHGuVm

visit our website | log in to your account | get support
Copyright

niko - last post on this issue before I remove everything SteelSeries and start over.

I opened the test page and then the gauges page, and went to the error log on the server, and this is what I got…

[Sun Apr 22 10:34:54 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: SteelSeries Gauges
[Sun Apr 22 10:34:54 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/solar_24hr.php, referer: SteelSeries Gauges
[Sun Apr 22 10:34:54 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: SteelSeries Gauges
[Sun Apr 22 10:34:54 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: SteelSeries Gauges
[Sun Apr 22 10:34:54 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: SteelSeries Gauges
[Sun Apr 22 10:34:54 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/windgust_1hr.php, referer: SteelSeries Gauges
[Sun Apr 22 10:34:54 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: SteelSeries Gauges
[Sun Apr 22 10:34:54 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: SteelSeries Gauges
[Sun Apr 22 10:34:54 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/temp+hum_24hr.php, referer: SteelSeries Gauges
[Sun Apr 22 10:34:53 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/humidity_1hr.php, referer: SteelSeries Gauges
[Sun Apr 22 10:34:53 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/baro_24hr.php, referer: SteelSeries Gauges
[Sun Apr 22 10:34:53 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/temp+dew+hum_1hr.php, referer: SteelSeries Gauges
[Sun Apr 22 10:34:51 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:51 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/rain_this_year.php, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:50 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:50 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/rain_week.php, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:39 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:39 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/baro_7days.php, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:37 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:37 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:37 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/humidity_24hr.php, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:37 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/humidity_7days.php, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:36 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:36 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:36 2018] [error] [client 74.67.155.152] File does not exist: /home/cdcpccon/public_html/500.shtml, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:36 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/baro_7days_line.php, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:36 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/windspeed_7days.php, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html
[Sun Apr 22 10:34:36 2018] [error] [client 74.67.155.152] (12)Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/cdcpccon/public_html/wxgraphs/winddir_24hr.php, referer: http://www.cdcpcconsulting.com/wxgraphs/wxgraphs_test.html

Also attached is graph from cpanel…

I think the error log is the key -

Craig


Yeah, it’s definitely burning up memory. I don’t think the steel series itself is a problem, that uses javascript which runs in the browser not on the server. I would just start over with jpgraph.

Will do and thank you for helping me think this thru.

Craig

There is a much newer version of the jpgraphs library available for download, maybe worth trying that? It also may be worth trying seeing a smaller graph size?

Mark - thanks. I downloaded from a link in the tutorial and thought I was getting the latest version. Since I am starting over again from scratch, I will look and be sure to get the newest version.

Craig

Mark - help me here - I went to JPGraph.net and the version there is 4.2.0 which is the one I was using. Am I missing something?

Thanks

Craig

AFAIK 4.2.0 is the latest version.

OK - will try again in the morning.

Thanks

Sorry, but I was pretty sure when I loaded up your test page it didn’t show as version 4.2.0 - I went and checked which version I was using before I posted (which is 4.2.0)

OK, official frustration… #-o

I redid everything and am getting the same results. I am using JPgraph-4.2.0 and wxgraphs off broadstairs site dated 11/20/2016. When the SteelSeries loads, it look fine but the graphs do not resolve consistently, and there are server errors. See attachment. If I call directly any graph, it is created and resolves fine.

Errors start with 'cannot allocate memory:couldn’t create child…

Any thoughts?

Thanks

Craig


Clutching at straws let’s see if there are any php errors, add this line right at the top of one of the graph scripts

error_reporting(E_ALL);

and then run that script

If niko’s suggestion doesn’t throw any light on this, then it sounds like the php fpm (if you are using fpm) needs some more memory allocating to it to me.
I set my script memory limit to 128M which I think may be the default in 7.0?..

memory_limit = 128M

http://php.net/memory-limit