java resource management
Alma J Wetzker
almaw
Mon May 17 11:58:49 PDT 2004
Net Llama! wrote:
> Greetings,
> I've got a question for the java experts. I've got a java app running in
> j2ee (that i did NOT write). Are there any good tools for doing resource
> management, such as detecting memory leaks, or memory usage optimzation?
> Basically I'm trying to determine if this java app can be optimized at
> all, or how wasteful it is with resources.
>
In the java code itself, there really isn't any memory management. The
closest you can come is some obscure database commands that leave some queries
in memory longer. Memory leaks come from VM implementations and add ons. In
the code itself, if you don't use proper closes/destructors, the garbage
collector waits until memory is full before a GC. Then the system appears to
hang. You can adjust the memory characteristics of the VM with switches.
IBM had a good site for Java on linux (I haven't used it for many months).
Good luck.
-- Alma
More information about the Linux-users
mailing list