Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » HotSpot technology use
HotSpot technology use [message #146348] Sun, 29 February 2004 07:08 Go to next message
Eclipse UserFriend
Originally posted by: pmdanger.yahoo.com

Hi,

I have a problem with Java application...they are quite slow in GUI or
they use too much memory / CPU.

Someone from SUN team told me that HotSpot technology is done to avoid
this kind of problem.

It seems this technology is included in JRE since J2SE 1.4.1.

What i don't know is how to use this technology ?
Should i include a special librairy or use some particular options ?
or this technology is automatically used when you use J2SE version 1.4.1
or higher ?

a piece of example could be useful.
thanks in advance.
Maileen
Re: HotSpot technology use [message #146357 is a reply to message #146348] Sun, 29 February 2004 08:11 Go to previous message
Eclipse UserFriend
Hi Maileen,

> I have a problem with Java application...they are quite slow in GUI or
> they use too much memory / CPU.
>
> Someone from SUN team told me that HotSpot technology is done to avoid
> this kind of problem.
>
> It seems this technology is included in JRE since J2SE 1.4.1.
>
> What i don't know is how to use this technology ?
> Should i include a special librairy or use some particular options ?
> or this technology is automatically used when you use J2SE version 1.4.1
> or higher ?

The HotSpot technology is just (as far as I know) the JIT (just in time)
compiler + some other stuff. It is automatically switched on. Slow gui
and high memory is mostly not the fault of java. It just depends on your
computer and most likely the quality of the java-application.

You mal try to increase the available memory using the -mx (or -Xmx)
setting. Consider HotSpot as a marketing word describing a major
change in the JavaVM architecture. It is switched on by default but
the JIT compiler can also be disabled by on default which is sometimes
usefull when debugging. (but not that often).

To learn more look at:
http://java.sun.com/products/hotspot/docs/whitepaper/Java_Ho tspot_v1.4.1/Java_HSpot_WP_v1.4.1_1002_1.html#1

If the application is slow and uses a vast of memory (and you also gave
the VM all memory your computer can offer using the -mx parameter),
consider the application as slow. And also HotSpot can not save the
day for you because it is allready trying to.


Hope it helps,

Martin (Kersten)
Previous Topic:Shared Workspace between Windows and Linux
Next Topic:Project dependency confusion
Goto Forum:
  


Current Time: Wed May 07 01:00:26 EDT 2025

Powered by FUDForum. Page generated in 0.03193 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top