> Hello there, > > i have following problem: > > It seems that my mud gets more memory as it frees if the for example > player goes out again. Or if a command, what has some output on the > screen, is typed very often, it seems to swallow memory and not to give > free. > > Someone told me that there are easy 'addon' thing (for Linux), which > can help you to find out things like, that memory parts were get by > the Mud, and that were made free again. How do i use this things to > find out where my Mud has the memory problems ? Well, if you're looking for lost memory, the electric fence library may help. If it is installed on your system, you simply add it in at the linker phase of compilation with the line -lefence Electric fence is included in most versions of redhat linux when you install the compilers (I believe it is under compiler-tools). There are also a few other libraries out there that can help you get the job done, malloc and mallocdebug if you can find them. > > Or has someone else any idea how to find out where the memory is get > lost ? > Or, if you're totally lost on it, you can always take the easy way out. For the price of an additional percentage of memory, you can include a garbage-collection library (there's one out there maintained by boehm@mti.sgi.com, possibly you could get further information at the address http://reality.sgi.com/employees/boehm_mti). A garbage collection library would let you (in theory) not worry about memory freeing at all. This is the sort of thing that java uses, and it does make life a bit easier. PjD Offsubject: Speaking of java, I ran across a quandry the other day. I wrote a simple applet which is basically the game 'pong' with no players, no speed changes, nothing but a ball bouncing around in a cube. (It WILL be pong though!). I was bored and made the ball change colors upon striking a wall. Excitement. Anyway, the problem is that the applet is not correctly responding to size changes. It does not have a seperate window, or anything reasonable like that, it is an in-page thing. When I test it in the appletviewer, I can resize it, but the 'GetParamater("height")' or whatever is pulled directly from the static html page tags. I'm not sure of an instance where you could resize the applet within an html page, but I'm nitpicky. Anyone know of a way how I could get it to resize without spawning off a seperate frame or window or panel or whathaveyou? Or, anyone have proof that simply, the appletviewer can resize, and the fact that it can is misleading and it shouldn't? PjD +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST