Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Linux FDS » LFDS memory usage
Re: LFDS memory usage [message #233569 is a reply to message #233437] Sat, 09 December 2006 20:56 Go to previous messageGo to previous message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma:
General (3 Stars)

Well firstly install Valgrind on the machine (if it is not already installed).
Second, set up a LFDS with the stock unmodified no SSAOW 2.9.2 LFDS scripts.so/bhs.so and confirm that it is leaking memory.
After you confirm that, go into the server folder and type
export LD_PRELOAD=./scripts-RH8.so (if on RH8) or export LD_PRELOAD=./scripts-RH73.so (if on RH73). Then do
valgrind --tool=memcheck --leak-check=yes --num-callers=10 --log-file=renegade <name of server binary>

It should then load the server and the custom scripts.dll and instrument it. Do whatever it is that you need to do to get it to leak memory and then exit the server (exit it properly with QUIT and dont force terminate it or ctrl-c or whatever that doesnt give it the proper chance to shut down)
Then once thats done, look for a file called renegade.pidnnnnn where nnnnn is some number and post it here or something, that will contain information on where it is leaking memory.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: I need access to a RH73 LFDS machine
Next Topic: Dedicated Servers
Goto Forum:
  


Current Time: Tue Oct 01 02:21:36 MST 2024

Total time taken to generate the page: 0.00883 seconds