Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » What JVM config options does Eclipse insert into application?
What JVM config options does Eclipse insert into application? [message #1829732] Thu, 09 July 2020 16:39 Go to next message
Ed Welch is currently offline Ed WelchFriend
Messages: 3
Registered: July 2018
Junior Member
I have a java application which behaves differently when I launch it from Eclipse than when I launch it from a standalone jar file. For instance, running standalone it hangs (seems to be a out of memory error, but I'm not sure). If I run it the exact same way from eclipse it runs fine with no errors.
I'm just wondering how does Eclipse launch applications, does it insert hidden config options into the JVM (like -xmx or -xms)?
Re: What JVM config options does Eclipse insert into application? [message #1829743 is a reply to message #1829732] Fri, 10 July 2020 01:16 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3783
Registered: July 2009
Senior Member

You can bring up the Properties for the node in the Debug view that represents your Java runtime to see the entire command invocation that launched it. Most of what's used in what you specified in your application's launch configuration.

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: What JVM config options does Eclipse insert into application? [message #1829752 is a reply to message #1829743] Fri, 10 July 2020 08:20 Go to previous messageGo to next message
Ed Welch is currently offline Ed WelchFriend
Messages: 3
Registered: July 2018
Junior Member
Thanks for the answer.
You mean Run/Debug settings? I looked there, but I don't see any special settings. Everything is default.
Is there any other thing that Eclipse does that makes the java application run differently than when it runs from a standalone jar file?
Re: What JVM config options does Eclipse insert into application? [message #1829753 is a reply to message #1829752] Fri, 10 July 2020 08:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31342
Registered: July 2009
Senior Member
No, not in the settings. When you Run or Debug something, the Debug view of the Debug perspective will show a tree node for that launched process. In the context menu of the child node, there is "Properties..." item and it bring up a dialog that includes things like the "Command Line:" which shows exactly how the process was launched. You can compare that to your manual command line launch.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: What JVM config options does Eclipse insert into application? [message #1829759 is a reply to message #1829753] Fri, 10 July 2020 09:23 Go to previous message
Ed Welch is currently offline Ed WelchFriend
Messages: 3
Registered: July 2018
Junior Member
Yes, I see it now. Thanks very much. That's what I was looking for ;)
Previous Topic:Windows 10 Java 64
Next Topic:PyDev on Eclipse 2020-06 installation failed
Goto Forum:
  


Current Time: Tue Aug 04 01:35:10 GMT 2020

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

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

Back to the top