Mythruna
September 21, 2025, 12:54:21 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the new forums. See "Announcements" for a note for new users.
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: Just a few issues  (Read 27454 times)
Ghelmaron
Donators
Jr. Member
***
Posts: 76


View Profile
« Reply #15 on: April 15, 2012, 09:48:33 AM »

Yeah, I bet it totally is.  From that same command line, try typing:
Code:
set _JAVA_OPTIONS
And hitting return.

If that returns something then I wonder what evil thing has set the JVM options that way.

The response is:
Quote
_JAVA_OPTIONS=-Xmx256m -Xms256m


Quote
In the mean time, if you want to manually use these options then you should be able to force them on the command line.  From the command line, go to the directory where Mythruna is installed (where the mythruna .exe is and the lib directory, etc.)  (I'd tell you the command but I don't know what the directory is... I don't know if you have ever worked in the command line before though.)

java -Xmx512m -jar Mythruna-20120308.exe

That should force Java to use the required setting... but I'm curious to know what sets the _JVM_OPTIONS and why since this is bound to be causing problems on other machines.

I tried that as well and the memory usage is still the same. I also followed other suggestions from the internet for allocating java memory and it still seems stuck at the 256. When I used your command line line, I see that the very first line displayed in CMD is: "Picked up _JAVA_OPTIONS -Xmx256m -Xms256m"

So, I am going to try uninstalling java and downloading the latest version and installing that.
Logged
Ghelmaron
Donators
Jr. Member
***
Posts: 76


View Profile
« Reply #16 on: April 15, 2012, 10:11:46 AM »

Uninstalled and reinstalled Java and rebooted and still get the same same Java Options and the ingame /mem command still displays the 259522560 max.
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5613



View Profile
« Reply #17 on: April 15, 2012, 10:33:55 AM »

Yeah, I bet it totally is.  From that same command line, try typing:
Code:
set _JAVA_OPTIONS
And hitting return.

If that returns something then I wonder what evil thing has set the JVM options that way.

The response is:
Quote
_JAVA_OPTIONS=-Xmx256m -Xms256m

Ok, that right there would seem to be the issue and I sort of wonder how it got set... but anyway.

(I will assume Windows 7... this is actually a little easier on XP... and I'm no Windows 7 expert so hopefully I get it right...)
Go to your Control Panel.
We are trying to get the "System" panel which on my computer was under "System and Security" then "System".
From there on the left is "Advanced System Settings".

If all goes well then that should pop-up a window like this:


Click "Environment Variables..." down in the bottom of that window.

See if there is a _JAVA_OPTIONS entry and delete it.  It might help to yell "DIE! DIE! DIE!" as you do it... but I may be over-investing. Smiley

The entry really serves no purpose anyway since it is just forcing the default maximum memory that is already there.  And I'm sort of casting evil looks at Java for not letting the command line override those settings but still.

Hopefully that's where the options are coming from and you can nicely clean them and we'll have a happy ending to this story. Smiley
Logged
Ghelmaron
Donators
Jr. Member
***
Posts: 76


View Profile
« Reply #18 on: April 15, 2012, 11:39:50 AM »

I tracked down the infamous _JAVA_OPTIONS and challenged it. The beast put up a valiant fight as I tried to vanquish it, but it was unable to resist as I bespoke the Mythrunic words of power, "Die! Die! Die!" and the _JAVA_OPTIONS were no more. I was able to return to the world and wander around admiring the beauty free from the shackles of _JAVA_OPTIONS and it's evil minions, Maximum Memory and Stuttering Game. The world seemed anew and alive once again.

I.e. the issue appears to be resolved  Grin

I wandered all around various parts of the world. The only times I encountered a stutter was when loading a new area and sometimes the memory would get to 98% and then drop down to 40%, but even these only lasted for a second.

Thanks, Paul!
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5613



View Profile
« Reply #19 on: April 15, 2012, 11:56:56 AM »

Excellent.  And the stutters should be greatly reduced in the next version, too.

Glad you can play unshackled now!
Logged
Moonkey
Hero Member
*****
Posts: 1587

This is probably a picture.


View Profile
« Reply #20 on: April 15, 2012, 10:13:38 PM »

I still have my shackles Sad

I'll deal with em' until the update Smiley
Logged

Mythruna: Don't you dare read any posts I made before 2014.
Ghelmaron
Donators
Jr. Member
***
Posts: 76


View Profile
« Reply #21 on: April 23, 2012, 09:50:11 PM »

Well, I think I know where that "_JAVA_OPTIONS=-Xmx256m -Xms256m" came from; After removing that, I could not play Minecraft for more than 3-5 minutes without it freezing up. After I added "_JAVA_OPTIONS=-Xmx256m -Xms256m" back, I can play Minecraft again. But with those options, Mythruna becomes almost unplayable. However, I believe that I can set some Java variables specific to a jar file. So, I should be able to set those 256 MB settings to only apply when running the Minecraft jar. Weird, aye? Minecrafts only works for me by limiting the java memory.  Tongue
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5613



View Profile
« Reply #22 on: April 23, 2012, 10:15:22 PM »

Well, I think I know where that "_JAVA_OPTIONS=-Xmx256m -Xms256m" came from; After removing that, I could not play Minecraft for more than 3-5 minutes without it freezing up. After I added "_JAVA_OPTIONS=-Xmx256m -Xms256m" back, I can play Minecraft again. But with those options, Mythruna becomes almost unplayable. However, I believe that I can set some Java variables specific to a jar file. So, I should be able to set those 256 MB settings to only apply when running the Minecraft jar. Weird, aye? Minecrafts only works for me by limiting the java memory.  Tongue

Nah... the max memory is the same with or without those options.  It must be the min settings that mess it up.

Try setting it to -Xmx512m instead of 256 and see what happens with Minecraft.  If they still have a problem then I know exactly what it is. Smiley
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5613



View Profile
« Reply #23 on: April 23, 2012, 10:32:37 PM »

Incidentally, you are not alone in this issue...

In this last release, I changed the memory indicator to be red if the max memory is less than expected and I've already seen a Youtube video posted with red memory indicator. Smiley
Logged
Ghelmaron
Donators
Jr. Member
***
Posts: 76


View Profile
« Reply #24 on: April 28, 2012, 11:18:37 AM »

This issue appears to be resolved for both games. With the Java_Options removed, I can play Mythruna. For Minecraft to run, I use a batch file which basically has the java settings for the Minecraft executable only to run with a starting and maximum memory of 1GB. I have played both games for hours and they seem to run fine. Smiley
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5613



View Profile
« Reply #25 on: April 28, 2012, 12:41:07 PM »

This issue appears to be resolved for both games. With the Java_Options removed, I can play Mythruna. For Minecraft to run, I use a batch file which basically has the java settings for the Minecraft executable only to run with a starting and maximum memory of 1GB. I have played both games for hours and they seem to run fine. Smiley

Good to know.  Thanks.
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!