Results 1 to 6 of 6
Thread: -Xmx Problem
- 07-19-2016, 11:57 PM #1
Member
- Join Date
- Jul 2016
- Posts
- 3
- Rep Power
- 0
-Xmx Problem
For some reason, some programs will not run unless Java's Xmx is set to 512M in the environment variables. Arduino is one of these programs. My issue is when I play Minecraft with these settings, I run out of RAM. I usually play Minecraft with -Xmx5G. Am I supposed to change the setting every time I want to use a different Java application? Why do some programs fail to launch just because they have a lot of allocated RAM?
Last edited by TheYolocasut1; 07-20-2016 at 12:11 AM.
- 07-20-2016, 01:01 AM #2
Re: -Xmx Problem
Using Environment variables for values that are unique to different applications won't work. It would be better to create shortcuts for each application. In that shortcut set the command line to the values you want for the program that is started.
For example, I have this as the Target in a shortcut to start a program:C:\Windows\System32\java.exe -Xmx750M -cp %JAVA_RUN%\SlideShowApp.jar;DocumentViewerW.jar SlideShow.ImgIdxEditorIf you don't understand my response, don't ignore it, ask a question.
- 07-20-2016, 01:24 AM #3
Member
- Join Date
- Jul 2016
- Posts
- 3
- Rep Power
- 0
Re: -Xmx Problem
Both Minecraft and Arduino use windows executables for launchers. I cannot figure out how to launch the program via command line. Also when I tried using a batch file to launch a jar, even though I had -Xmx512M in the command line, it still said "Picked up Java options -Xmx5G".
- 07-20-2016, 04:02 AM #4
Re: -Xmx Problem
Did you remove the environment variable?
If you don't understand my response, don't ignore it, ask a question.
- 07-20-2016, 04:27 AM #5
Senior Member
- Join Date
- Jan 2013
- Location
- Northern Virginia, United States
- Posts
- 6,226
- Rep Power
- 15
Re: -Xmx Problem
I did a search for "memory settings for minecraft" and found the following:
Did you check out this site? [Tutorial] Allocate more memory for minecraft - Tutorials and FAQs - Unmodified Minecraft Client Support - Support - Minecraft Forum - Minecraft Forum
Supposedly, there is a new launcher which lets you configure the JRE memory requirements. Note: For application problems based on Java, don't check Java sites; check the application sites. Most folks who have similar problems will report them there.
Regards,
JimThe JavaTM Tutorials | SSCCE | Java Naming Conventions
Poor planning on your part does not constitute an emergency on my part
- 07-20-2016, 05:50 AM #6
Member
- Join Date
- Jul 2016
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
Problem with adding dynamically JinternalFrame and dragging problem
By ki_ha1984 in forum New To JavaReplies: 5Last Post: 11-11-2015, 01:16 PM -
Delay between 2 same timings problem (Video of explanation of the problem inside)
By Lionlev in forum Advanced JavaReplies: 0Last Post: 11-07-2012, 01:44 PM -
Small problem with problem with Java, C++ parse program.
By dragstang86 in forum New To JavaReplies: 4Last Post: 10-30-2011, 04:43 AM -
Can anyone see the problem with my code? problem understanding switch (newbish)
By keith in forum New To JavaReplies: 9Last Post: 09-21-2010, 05:15 PM -
simple line problem / for loop problem
By helpisontheway in forum New To JavaReplies: 1Last Post: 11-17-2009, 07:12 AM
Bookmarks