|
Posted by Erik Kullberg on 09/26/07 10:34
I have a technical simulation program, written in PHP. The result of the
simulation is presented in shape of time history diagrams on the screen.
The program first calculates everything and stores the result in a double
indexed array, one row per time frame, one column per variable. This array
is then input to a plot function, which creates the diagrams by use of GD2.
In my local environment a certain run with this program takes about 5 sec.
On the internet server (a web hotel) the same run sometimes takes 3 min. or
more! Sometimes the result diagrams are not delivered at all.
I can conclude that the calculations are always completed, also in cases
when there is no output diagams, so one might suspect that the trouble is
connected to the plotting.
Is GD working in a memory compartment of its own, the size of which is too
little on that server?
Suggestions?
/ Erik
Navigation:
[Reply to this message]
|