Strange JVM memory problems

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Lee Godfrey

New Member
Jul 29, 2019
6
0
0
DireWolf20 1.6.4 is crashing and I've noticed this in my log

Code:
2014-01-11 14:41:01 [INFO] [STDOUT] -- System Details --
2014-01-11 14:41:01 [INFO] [STDOUT] Details:
2014-01-11 14:41:01 [INFO] [STDOUT]    Minecraft Version: 1.6.4
2014-01-11 14:41:01 [INFO] [STDOUT]    Operating System: Windows 7 (amd64) version 6.1
2014-01-11 14:41:01 [INFO] [STDOUT]    Java Version: 1.7.0_45, Oracle Corporation
2014-01-11 14:41:01 [INFO] [STDOUT]    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
2014-01-11 14:41:01 [INFO] [STDOUT]    Memory: 35072920 bytes (33 MB) / 497025024 bytes (474 MB) up to 497025024 bytes (474 MB)
2014-01-11 14:41:01 [INFO] [STDOUT]    JVM Flags: 5 total; -Xms256M -Xmx2048M -XX:PermSize=256m -Xms256m -Xmx512m
2014-01-11 14:41:01 [INFO] [STDOUT]    AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
2014-01-11 14:41:01 [INFO] [STDOUT]    Suspicious classes: FML and Forge are installed
2014-01-11 14:41:01 [INFO] [STDOUT]    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

why are the -Xms256m -Xmx512m Flags getting added ?
 

NEXUS2345

New Member
Jul 29, 2019
185
0
0
Um... You have 11 versions of Java, uninstall all of them but 1.7_update45 please! That may be the problem!
 

Lee Godfrey

New Member
Jul 29, 2019
6
0
0
Removed all java installs (I'll have to put them back later) and reinstalled 1.7.45 x64, I still have the same issue. Just Clarify this ONLY happens with the direwolf pack, Horizons works fine for example.

Code:
[12:46:23] [INFO] JavaFinder.parseWinJavaVersion:126: The FTB Launcher has found the following Java versions installed:
[12:46:23] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.7.0_45 sorted as: 1.7.0_45 64 Bit Java at : C:\Program Files\Java\jre7\bin\java.exe
[12:46:23] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.7.0_45 sorted as: 1.7.0_45 64 Bit Java at : C:\Windows\system32\java.exe
[12:46:23] [INFO] JavaFinder.parseWinJavaVersion:164: FTB Launcher Prefers: Java Version: 1.7.0_45 sorted as: 1.7.0_45 64 Bit Java at : C:\Program Files\Java\jre7\bin\java.exe

...
 

Ashzification

New Member
Jul 29, 2019
7,425
1
0
I'm a software developer.
You still don't need all of these Javas.
Code:
[10:22:45] [INFO] JavaFinder.parseWinJavaVersion:126: The FTB Launcher has found the following Java versions installed:
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.6.0_35 sorted as: 1.6.0_35 32 Bit Java at : C:\Program Files (x86)\Java\jre6\bin\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.7.0_45 sorted as: 1.7.0_45 32 Bit Java at : C:\Program Files (x86)\Java\jre7\bin\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.6.0_35 sorted as: 1.6.0_35 64 Bit Java at : C:\Program Files\Java\jre6\bin\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.6.0_31 sorted as: 1.6.0_31 64 Bit Java at : C:\Program Files\Java\jre1.6.0_31\bin\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.7.0_45 sorted as: 1.7.0_45 64 Bit Java at : C:\Program Files\Java\jre7\bin\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.6.0_33 sorted as: 1.6.0_33 32 Bit Java at : C:\Program Files (x86)\Java\jdk1.6.0_33\bin\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.7.0_10 sorted as: 1.7.0_10 32 Bit Java at : C:\Program Files (x86)\Java\jdk1.7.0_10\bin\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.6.0_35 sorted as: 1.6.0_35 64 Bit Java at : C:\Program Files\Java\jdk1.6.0_35\bin\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.6.0_31 sorted as: 1.6.0_31 64 Bit Java at : C:\Program Files\Java\jdk1.6.0_31\bin\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.7.0_45 sorted as: 1.7.0_45 64 Bit Java at : C:\Windows\system32\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:137: Java Version: 1.7.0_45 sorted as: 1.7.0_45 32 Bit Java at : C:\Windows\SysWOW64\java.exe
[10:22:50] [INFO] JavaFinder.parseWinJavaVersion:164: FTB Launcher Prefers: Java Version: 1.7.0_45 sorted as: 1.7.0_45 64 Bit Java at : C:\Program Files\Java\jre7\bin\java.exe

The only ones you would need from that list are Java 7, update 45 x64 and Java 6 update 35 x64. Maybe the 32 bit versions of those two. To my knowledge, Java 6 isn't being updated anymore, so there's little or no reason for you to need it. The outdated versions are just wasting space for you at this point, and seriously confusing your launcher.



For future reference to any passersby (developers only!): Install JRE first. Run the launcher. Then install JDK. For some reason there is still an intermittent issue with installing JDK first. It's not common enough to track.
 

Lee Godfrey

New Member
Jul 29, 2019
6
0
0
Your right, I guess I kept those old versions 'just in case'.

Having just 1.7_45 does not fix my problem however, Its probably the way my pc has collected crap over the last few years, I should really rebuild it.
 

Ashzification

New Member
Jul 29, 2019
7,425
1
0
Your right, I guess I kept those old versions 'just in case'.

Having just 1.7_45 does not fix my problem however, Its probably the way my pc has collected crap over the last few years, I should really rebuild it.
Try removing bloatware, defrag and restart?

Oh and de-dusting helps sometimes too ;)