|
Re: help: msg#00069java.enhydra.general
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! This not a Enhydra problem and it does not look like a problem. This is the normal JVM memory management behaviour. The garbage colector is invoked by the JVM only under certain circumstances. This is why the memory is not freed as soon as possible but only when the JVM think that it can waste some CPU cycles calling GC or when it's running out of memory. Calling java.lang.Runtime.getRuntime().gc() is considered bad ideia because you are trying to force gc instead of leaving it to be managed by de JVM. This can make performance penalties in you application. The gc should only be invoked directly if you know what you are doing and have a very good reason for it. I recommend you to see some docs about JVM and GC. I hope i helped. João Paulo Ribeiro PS: The GC behaviour is JVM dependent and can vary between implementations. Thorsten Hilker wrote: |Just a guess: | |Run java.lang.Runtime.getRuntime().gc() after you opened a file. |Maybe that helps. | |Greetings |Thorsten | |>-----Original Message----- |>From: enhydra-admin@xxxxxxxxxxx |>[mailto:enhydra-admin@xxxxxxxxxxx] On Behalf Of |>rajendran.gana@xxxxxxxxxxx |>Sent: Tuesday, February 18, 2003 11:04 AM |>To: matt@xxxxxxxxxx; jay@xxxxxxxxxx; markd@xxxxxxxxxx; |>shawn@xxxxxxxxxx; kristen.pol@xxxxxxxxxx; |>david.young@xxxxxxxxxx; andy@xxxxxxxxxx; enhydra@xxxxxxxxxxx |>Subject: Enhydra: help |> |> |>Hi ! |>I have some problems. |>Can you help me out? |> |>My project is MFC based application. |>I am using a DOM object to parse a xml file. |>If I open a xml file the memory gets increased by 5 MB. |>Per every file opened it increases by 5 mb. |>It is not released after opening the file. |>If I maximise and minimise the application the memory is |>released. What is the solution for this problem. |> |>Regards |>G.Rajendran |> |> |>_______________________________________________ |>Enhydra mailing list |>Enhydra@xxxxxxxxxxx |>http://www.enhydra.org/mailman/listinfo.cgi/en> hydra |> | |_______________________________________________ |Enhydra mailing list |Enhydra@xxxxxxxxxxx |http://www.enhydra.org/mailman/listinfo.cgi/enhydra | | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6-2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAj5SRv4ACgkQbwM7R+C+9B0URgCeLMdHeJRwXfAWLt+wGB36JkWP nboAn1eimuAxjAnyZPAV3GSX3ffFuP4d =eg2z -----END PGP SIGNATURE-----
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: help, Thorsten Hilker |
|---|---|
| Next by Date: | Re: multiple post issue, Scott Dietrich |
| Previous by Thread: | RE: help, Thorsten Hilker |
| Next by Thread: | Getting simple HelloWorld servlet to run on Enhydra 5.0, Shirish Limaye |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |