Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (579)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Server or client JVM for your (Java) IDE ?  (Read 1457 times)
0 Members and 1 Guest are viewing this topic.
Offline Bombadil

Senior Member





« Posted 2004-02-05 07:45:41 »

I've noticed, that some nice IDEs are Java applications and hence need a (recent) JRE/JDK in order to run.
In this forum you can read many positive articles about the benefits of the server JVM.

However for example Eclipse just needs the JRE (which hasn't got a server VM). JBuilder includes the JDK but uses the client VM of it.
Why is this so?

Since I'm using JBuilder: Does it make sense to change its jdk.config so that it uses the server VM?
Naturally I've tried it but don't see any major difference. As usual a visual judgment is no "benchmark". Maybe some other users know more about this topic.
Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2004-02-06 13:06:05 »

Eclipse actually requires the JDK.

I use the server VM with eclipse. Slow to start up but as I leave my machine on or hibernated for weeks running, it's nearly always in a state of optimization.

Cas Smiley

Offline Bombadil

Senior Member





« Reply #2 - Posted 2004-02-06 14:02:15 »

Quote
Eclipse actually requires the JDK.

I use the server VM with eclipse. Slow to start up but as I leave my machine on or hibernated for weeks running, it's nearly always in a state of optimization.

According to the Eclipse FAQ it doesn't actually need the Java SDK, just the Java JRE.
http://www.eclipse.org/eclipse/faq/eclipse-faq.html#users_3
Quote
You must have a Java Runtime Environment (JRE) installed on your computer. Eclipse requires version 1.3 or 1.4 of a Java 2 Standard Edition JRE.

However, since I don't use Eclipse, this could be wrong and you could be right. ;-)

I just listed Eclipse because it looked to me as if it would just need the JRE and hence use the client JVM, like JBuilder does.

I still can't see why JBuilder (and Eclipse, in case its FAQ is right) uses the client JVM by default...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #3 - Posted 2004-02-06 17:41:49 »

It uses the system default VM.
Actually you're right, Eclipse doesn't need the JDK to run, but if you don't have the JDK, you can't see any of the Java source code in the debugger etc. and nor do you have the various other JDK tools like javadoc, rmic, etc. which makes any serious development a little tricky.

Cas Smiley

Offline Bombadil

Senior Member





« Reply #4 - Posted 2004-02-09 06:54:11 »

The same question arises with the smart JEdit: I start it by clicking its JAR file and so the JRE's (client) VM is being used. I changed it so that JEdit uses the JDK's server VM.

Still I'd be interested what VM experts suggest... Are big GUIed application like JEdit or an IDE typical server (VM) applications or would the client VM be better?

Since I can't figure out any disadvantages at the moment (startup time isn't an issue) by using the server VM I think I'll use it.
Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #5 - Posted 2004-02-09 08:17:13 »

Actually now I'm using JDK1.5 I've started using the client VM for my IDE, mainly because it's disk I/O bound rather than CPU bound on my 2GHz laptop and also because when I launch my apps inside the IDE using the 1.5 JRE, I get that lovely shared classes thing going on and it saves a load of startup time and memory! Or am I just imagining it?

Cas Smiley

Offline AndersDahlberg

Junior Member





« Reply #6 - Posted 2004-02-09 11:48:00 »

Cas: try java -server -Xdump (IIRC) and you might find that class sharing work fine with -server too Wink
Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #7 - Posted 2004-02-09 14:20:41 »

Ah, cool! I was under the impression from the docs it wasn't in the server VM.

Having said that... all the progs I'm running from my IDE get stopped and started so much they're much better off being in the client VM anyway.

Cas Smiley

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (36 views)
2014-04-15 18:08:23

BurntPizza (32 views)
2014-04-15 03:46:01

UprightPath (47 views)
2014-04-14 17:39:50

UprightPath (30 views)
2014-04-14 17:35:47

Porlus (47 views)
2014-04-14 15:48:38

tom_mai78101 (68 views)
2014-04-10 04:04:31

BurntPizza (128 views)
2014-04-08 23:06:04

tom_mai78101 (228 views)
2014-04-05 13:34:39

trollwarrior1 (193 views)
2014-04-04 12:06:45

CJLetsGame (200 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!