• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

doubt on '-server' parameter being ignored on eclipse IDE initialization

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers,

While tuning my eclipse.ini file, i noticed, with visualVM, that although the -server parameter was read, the java vm itself was running in client mode.

This will only happen on win32 machines because in 64 bits and other (decent) OS the vm itself is able to determine its mode.

For those interested, here's the data:
Runtime Platform: Hotspot VM (Sun's jdk 1.6.0_14) 32 bits on Windows XP
Eclipse: 3.5 (Galileo)

eclipse.ini file contents:


If you run visualvm and connect it to the eclipse process, you will see the '-server' parameter under the tab 'jvm arguments'. But it shows, in the overview tab, the JVM as 'Java HotSpot(TM) Client VM (14.0-b16, mixed mode)'

I suspect that's related to the equinox's initialization, I tried the -server parameter on other parts of the eclipse.ini file to no avail.

Does anyone know more about this issue?

Thanks in advance,
Carlos
eclipse_visualvm.JPG
[Thumbnail for eclipse_visualvm.JPG]
screenshot of visual vm's attachement to eclipse
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Carlos,

I entered the same issue, just found out how to use Eclipse on Windows within a 32-bit Server JVM.

Just add the lines
***
-vm
[your JRE path]\bin\server\jvm.dll
***

Best regards (e esperando não chegar tarde demais ),

Javier Far
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is that "-server" is not a VM argument. Rather, it is an argument that is identified and acted upon by the VM loaded (usually java.exe). I suspect that eclipse.exe is loading the client VM, which then ignores the "-server" option. So the trick would be to get eclipse.exe to recognize that you want to use the server, rather than the client, VM and thus load the proper one. Javier's solution is perfect for this.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic