Re: Running 1 VM for more Java programs

From: Roedy Green (look-on_at_mindprod.com.invalid)
Date: 07/18/04


Date: Sun, 18 Jul 2004 19:35:17 GMT

On Sun, 18 Jul 2004 21:24:20 +0200, "Pansje" <NoSpam@NoSpam.nl> wrote
or quoted :

>I get the impression that each time I start a Java program, a new VM is
>started (taskmanager shows java.exe of about 13M for each start). Is this
>really true, or is taskmanager "confused".

That's true. However IIRC there is now a DLL so you don't use quite as
much RAM as you used to. See http://mindprod.com/jgloss/echidna.html
for a way to run several apps in one JVM.

>
>Also I'm not impressed by the startup time of even the most simple
>application. I assume that most of the time is spend on starting the VM.
>Is there a way to start the VM only once, and use that instance for all java
>programs ??

Agreed. The problem is Sun sells servers where the startup time does
not matter. I have some ideas to speed up desktop startup time.
see http://mindprod.com/projects/gespenster.html
http://mindprod.com/projects/suspendedanimation.html

One of the things you can do today is statically compile to exe. See
http://mindprod.com/jgloss/nativecompiler.html
http://mindprod.com/jgloss/jet.html
 

-- 
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming. 
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


Relevant Pages

  • Re: Prefetch Abort in FileSys
    ... We discovered that if the object store in SDRAM is scrubed at startup time ... RAM for debugging. ... > Errors like this are almost always problems in memory setup. ... >> fine but dies when attempting to start the first thread. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: FC2 Memory Requirements
    ... > basically halfed Open Office's startup time. ... loaded, there's not enough RAM available to keep OO's working set around, ... Click pulldown menu <wait a while for menus to paged back in from disk> ...
    (Fedora)
  • Re: Does it rock?
    ... I'm running the Pro version on a 2.2GHz laptop weith ... > 512 MB of DDR RAM. ... Doesn't seem to affect startup time much at all. ... the Athlon 64 upgrade was in the last year or so. ...
    (borland.public.delphi.non-technical)
  • Re: MSVCR71.dll missing
    ... The application that is running at startup time requires msvcr71.dll, ... failed to locate/install it. ... Since msvcr71.dll is not a OS DLL, this is a problem with the particular ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: rebase native images, please help
    ... > relocating a dll at runtime affects perf will depend on your specific ... It will definitely affect the working set a lot as the entire ... >> the startup time of a typical application. ...
    (microsoft.public.dotnet.framework.performance)