Mythruna
May 12, 2024, 11:15:00 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

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: Moving to java 7???  (Read 19855 times)
Thanos
Jr. Member
**
Posts: 60



View Profile
« on: June 13, 2012, 03:48:23 PM »

This is probably a dumb question, but I thought I would ask this both as a gamer and developer. Should i move to java 7 without risking messing my current java6 projects up? Tongue
I mean does it make any difference at all? What version of java are you using for developing and testing mythruna Paul?
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #1 on: June 13, 2012, 04:51:42 PM »

This is probably a dumb question, but I thought I would ask this both as a gamer and developer. Should i move to java 7 without risking messing my current java6 projects up? Tongue
I mean does it make any difference at all? What version of java are you using for developing and testing mythruna Paul?

I develop for 6 still because there were some (minor?) issues with 7 at one time but mostly because there was some question how long it would be before Macs supported 7.

I haven't checked to see if any of these are still issues.  I think quite a few people run Mythruna under Java 7 but I can't be sure since I don't yet have stats for that.
Logged
Thanos
Jr. Member
**
Posts: 60



View Profile
« Reply #2 on: June 13, 2012, 05:26:09 PM »

oh ok well i just noticed at oracle's website there is a release of java 7u5 for Macosx-x64. java.com also recommends java 7u5 so i guess it must be pretty stable now. I may try it after all it claims to be backwards combatible with all the previous java versions so i guess i wont have any problems with my code.
p.s im using windows 7
« Last Edit: June 13, 2012, 05:32:18 PM by Thanos » Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #3 on: June 13, 2012, 05:53:08 PM »

Yeah, I heard there was movement on the Java 7 on Mac issue recently.  Since Java 6 is already end-of-lifed I think... it's worth moving.
Logged
FutureB
Donators
Hero Member
***
Posts: 512


RAWR


View Profile
« Reply #4 on: June 14, 2012, 02:21:16 AM »

tryed it just then with java 7 and it seemed fine.

in a few weeks ill be on holidays and will come back to mythruna properly haha i achualy miss playing it, when i went online just then i was so tempted to start building my next project iv planed but ehh have to get school over with so ill see you all soonnnnn :]
Logged


Say the opposite of these words:
1)Always.
2)Coming.
3)From.
4)Take.
5)Me.
6)Down.
Thanos
Jr. Member
**
Posts: 60



View Profile
« Reply #5 on: June 14, 2012, 06:47:20 AM »

Yeay i tried mythruna with java 7 too and theres no difference at all except some stutterings on multiplayer (freezes for some milliseconds) that i also had with java 6 but now they seem to occur more frequently but maybe its my gpu's fault for that. (same thing with minecraft too) Programs tha use ftp calls though wont work with java 7 until you disable windows firewall... That bug has been reported as fas as ive seen but no solution yet Undecided
« Last Edit: June 14, 2012, 07:25:07 AM by Thanos » Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #6 on: June 14, 2012, 10:10:47 AM »

Yeay i tried mythruna with java 7 too and theres no difference at all except some stutterings on multiplayer (freezes for some milliseconds) that i also had with java 6 but now they seem to occur more frequently but maybe its my gpu's fault for that. (same thing with minecraft too) Programs tha use ftp calls though wont work with java 7 until you disable windows firewall... That bug has been reported as fas as ive seen but no solution yet Undecided

When you run, is the memory indicator in the lower right red or the same color as the rest of the debug stuff?  If you don't know what I'm talking about then maybe a screen shot would help.
Logged
Thanos
Jr. Member
**
Posts: 60



View Profile
« Reply #7 on: June 14, 2012, 12:18:17 PM »

Yeap it is red. That picture was taken using Java 6 if it matters at all. Oh i'd like to mention also that when i pause the game with esc and doing other stuff on the pc like browsing etc the game gives me an error and terminates that doesn't happen always though Roll Eyes
« Last Edit: June 14, 2012, 12:25:31 PM by Thanos » Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #8 on: June 14, 2012, 12:24:03 PM »

Yeap it is red. That picture was taken using Java 6 if it matters at all.


Red means it is ignoring the heap settings that are built into the exe.  You have have some global Java environment variable set somewhere since apparently this is common for Minecraft.

If you type /mem in the chat bar you should see the max memory... the max total is supposed to be 512 meg but I suspect it is only 256 in yours.  This will cause frequent GC pauses once the heap percentage starts to go up.  Worse on multiplayer since the networking stack churns through lots of temporary buffers.
Logged
Thanos
Jr. Member
**
Posts: 60



View Profile
« Reply #9 on: June 14, 2012, 12:43:22 PM »

i haven't set a global Java environment variable at least manually but if i type "java" on cmd, the java options menu shows up. Im using both java 64 and 32 bit (on windows 7 64bit) virtual machines you think this may causing a conflict?
i tried /mem a few times and this is what i get

Working Memory 51% (165888344/321060864) VmMax 34% (165888344/477233152)
Working Memory 59% (too bored to write the numbers) VmMax 40%
Working Memory 65% VmMax 43%
Working Memory 70% VmMax 46%
Working Memory 67% VmMax 45%
Working Memory 69% VmMax 46%
Working Memory 43% VmMax 29%

How can i fix this red mem thing?
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #10 on: June 14, 2012, 12:59:50 PM »

i haven't set a global Java environment variable at least manually but if i type "java" on cmd, the java options menu shows up. Im using both java 64 and 32 bit (on windows 7 64bit) virtual machines you think this may causing a conflict?
i tried /mem a few times and this is what i get

Working Memory 51% (165888344/321060864) VmMax 34% (165888344/477233152)
Working Memory 59% (too bored to write the numbers) VmMax 40%
Working Memory 65% VmMax 43%
Working Memory 70% VmMax 46%
Working Memory 67% VmMax 45%
Working Memory 69% VmMax 46%
Working Memory 43% VmMax 29%

How can i fix this red mem thing?

This one: 477233152  is the critical number.  That's the max heap in bytes... and it should be above 512000000.  Mine is 518979something.

There was another user who had this issue and it turned out to be a global environment variable which is why I asked about that.  If you open a command line and run "set" with no options it will dump all of the variables.  "set JAVA" will dump all of the ones that start with the word "JAVA".

...see what that says.  Apparently it seems like some minecraft related utility or something may set this environment variable but I don't know the specifics.
Logged
Thanos
Jr. Member
**
Posts: 60



View Profile
« Reply #11 on: June 14, 2012, 01:09:33 PM »

thats strange i dont see anything java related with SET also SET JAVA responds with "Environment Variable JAVA not defined"  Huh
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #12 on: June 14, 2012, 02:26:49 PM »

thats strange i dont see anything java related with SET also SET JAVA responds with "Environment Variable JAVA not defined"  Huh

Ok... then you must not have any defined and something else is overriding the settings.  Very strange.
Logged
Thanos
Jr. Member
**
Posts: 60



View Profile
« Reply #13 on: June 14, 2012, 03:23:12 PM »

Does the fact that im running both 32 and 64bit jres have anything to do with the problem? I created a bat file trying to give bigger heap size to mythruna.exe but i dont know if its correct. It looks like this

@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar Mythruna-20120508.exe
PAUSE

In that case Mythruna.exe is running using the 64bit jre, So i run the bat file and then it runs the exe. Take a look at the pictures below the mem has improved but im getting tons of errors at command prompt and this is causing the game to run too damn slow in fact slower than ever before lol Tongue So i dont know whats going on either but anyway its not a big deal just a few freezes here and there i can handle them i guess.


« Last Edit: June 14, 2012, 04:15:36 PM by Thanos » Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #14 on: June 14, 2012, 05:54:37 PM »

Ah... I think the errors are good.  We might have seen them in the error log too.  I will try to fix these for the next version.  This may be why you get pauses, too.
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!