[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Loading a class increases allocated memory by 6Mb !

Asked by finaris in New to Java Programming, Java Standard Edition, J2EE

Tags: Class Loader, Java, J2SE, Performace

Hi all,

While analyzing the memory consume of my Java Programm, i remarked that the allocated memory space increases by 6 Mb while
instantiating an object from a class.
The space increases excactly when the JVM tries to load the class by invoking the <i>loadclass<i> method.
the loaded class is a simple class with few methods an variables, hence i cannot understand why the JVM needs 6 Mb to load it !
Can anyone give me a tip ??

Thank you in advance.
[+][-]11/02/09 05:40 AM, ID: 25719126Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 05:38 AM, ID: 25728755Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/03/09 05:58 AM, ID: 25728944Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625