|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
I'm posting this in the Linux forum because that is the OS I am needing help in tracking down a memory leak.
Basically I'm wondering if anyone out there has any experience in trying to track down memory leaks under Linux. I have an application I am working on which runs as a script that runs 24x7 in the background on my Linux server gathering data from our AS400 and putting it into a local MySQL database. This is accomplished with a Java script that is called from a PHP "wrapper" script. The problem lies in that when this script is just left to run, even though it functions properly, system memory usage steadily climbs up at the rate of 7-10 megabytes per hour. I have 2 gigs of memory and 2 gigs of swap space on this server but I came in this morning to an unresponsive server and I think my script is the culprit. I am at a total loss though as to how to begin troubleshooting this. Best I can figure is that when my PHP script calls the java script there is some data that isn't properly cleaned up. Anyone have any advice or pointers on how to troubleshoot this type of problem? |
|
#2
|
||||
|
||||
|
the GNU Debugger, gdb is often tool of choice for this sort of stuff. I haven't really done much of a search, but this link gives some pointers for sniffing out memleaks in kde. I think google is your friend on this one
![]() http://developer.kde.org/documentat...emoryleaks.html have fun, and post back with what you find. I'm sort of interested in this stuff too ! christo I just noticed that page also links to Valgrind, ccmalloc and memprof, which might also be handy
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . Last edited by christo : November 22nd, 2002 at 04:40 AM. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > checking for memory leaks in PHP scripts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|