You are here: Articles > Computers & Technology > jvm

 See more articles about "jvm "

Tutorial Addendum on JVM - JRockit JVM 7.0



 31 December 18:00   

    



    



    

Let s use the afterward simple program to see how the Administration Animate works:

    

 

    

/**

    

* LongWhile.java

    

* Absorb (c) 2002 by Dr. Yang

    

*/

    

class LongWhile {

    

accessible changeless abandoned main(String[] a) {

    

Runtime rt = Runtime.getRuntime();

    

System.out.println(" Chargeless memory: " + rt.freeMemory());

    

System.out.println("Total memory: " + rt.totalMemory());

    

while (true);

    

}

    

}

    



    



    

Compile this program with J2SDK 1.4.0_02 and run it in JRockit JVM with

    

the Administration Animate server basic angry on:

    

 

    

progra~1jrockit7.01.4.0injava -cp .

    

"-Djrockit.managementserver=true" LongWhile

    

[JRockit] Administration Server started on anchorage 7090.

    

Chargeless memory: 62665048

    

Total memory: 73363465

    



    



    

Now my sample appliance is active in JRockit JVM with the Administration

    

Console server angry on accessible to consign advice on anchorage 7090.

    



    

Use the afterward command to run the JRockit Administration Animate client

    

component:

    

 

    

cd progra~1jrockit7.01.4.0console

    

..injava -jar ManagementConsole.jar

    



    



    

Unfortunately, this command comatose my laptop arrangement immediate. The blast

    

was so bad, that I had to abolish the alien ability and the array to restart

    

the system. This happened twice. But it formed on my desktop system. The

    

biggest aberration of my desktop is the concrete anamnesis size: 256M (128M more

    

than my laptop system).

    



    

Once the animate applicant basic started, I was able to affix to my running

    

sample application. The UI of the applicant basic was cool, and simple to use.

    

So I calm the afterward advice about my active program:

    

 

    

LongWhile run time item report:

    

Chargeless memory: 62665048

    

Absolute memory: 73363465

    

JRockit administration animate report:

    

Chargeless memory: 41523K

    

Absolute memory: 260332K

    

Chargeless heap: 60664K

    

Absolute heap: 71644K

    

Window 2000 assignment administer report:

    

LongWhile action memory: 14840K

    

JRockit animate action memory: 49180K

    



    



    

While watching at the animate window, I noticed a brace of absorbing things:

    



        

  • The abundance anamnesis acceptance appear on the animate matches carefully to the usage

        

    reported by the RunTime object.

        



  •     

  • A few abnormal afterwards the animate started, the anamnesis administration server

        

    component active calm with my LongWhile appliance started to aperture memory

        

    at a amount about 10K/sec.

        



  •     

  • At the aforementioned time, the animate applicant program was aswell aperture memory.

        



  •     

  • About 30 account later, the operating arrangement crashed. Algid re-start was

        

    needed to accompany my arrangement back.

        



  •     



    



    

I again the test, and got the aforementioned crash. I assumption JRockit 7.0 is not acceptable

    

for my arrangement configuration.

    



    



 


 memory, console, system, jrockit, management, longwhile, component, started, total, server, program, client, report, running, application, runtime, following, , management console, jrockit jvm, free memory, total memory, report free memory, management console server,

Share Tutorial Addendum on JVM - JRockit JVM 7.0:
Digg it!   Google Bookmarks   Del.icio.us   Yahoo! MyWeb   Furl  Binklist   Reddit!   Stumble Upon   Technorati   Windows Live   Bookmark

Text link code :
Hyper link code:

Also see ...

Tutorial Addendum on JVM - Anamnesis Administration
OverviewGenerally, a JVM is using the afterward rules to administer memory: When a JVM is invoked to run an application, it will ask the operating arrangement

Tutorial Addendum on JVM - Anamnesis Administration
Output on JRockit JVM with Xms2m Xmx64m Having 0 MB and abacus 10 MB... Chargeless memory: 8717040Total memory: 19419136Having 10 MB and abacus 10 MB... Chargeless memory: 8698800p