Java high cpu windows 10 Infinity

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • 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

Baron_Falcon

New Member
Jul 29, 2019
433
3
0
I have been beating my head against this wall for a month now.

I wasnt having any issues until late Dec.

I have done clean installs twice now of both FTB and Java, and one clean install of Windows 10 OS.

All my settings both audio and video are set to minimum.

If I do a clean install of FTB and Java it will start out fine. Then after a few hours of gameplay in a new game it will take forever to load, game will lag so bad its unplayable, and CPU for Java spikes to 80-90%. this is without even going to the nether

I have a new computer with dual core i3, 12 GB Crucial ballistix sport ram. I've scoured the internet for hours looking for fixes.

I have disabled all the windows 10 spyware and background crap that eats resources, its not any of the operating system, it is literally Java using 80-90%, when this happens RAM is less than 50% and disk is 0 or just above.

FTB is set to 4.25GB, I have 12GB of high performance RAM.

Anyone have any helpfull hints as to what this might be? Thanks.
 

malicious_bloke

Over-Achiever
Jul 28, 2013
2,961
2,705
298
I'm no expert on Java but I think you may actually get better performance if you drop the amount of RAM you allow MC to use.

iirc Java will just eat up whatever memory you give it then frantically start running the garbage collector to clear space. Garbage collector takes up processing resources so if you have a ton of memory made available to Java it'll use a lot more of your CPU.

Or I may just be talking shite, someone here may be able to shed more light on this...
 

GreenZombie

New Member
Jul 29, 2019
2,402
-1
0
If you have a 2nd PC, or an i5 or better CPU, you should download the standalone server for the pack you are playing and run that as a separate process. (And i5 or i7 should have sufficient cores to run a MC client and dedicated MC server side by side with no issues, especially given your available system RAM). Or find an online server and play on that:

This will let you isolate the cause of your issue to being a client side, or server side:

Client side issues relate to insufficient ram (you have lots), using mods that have poorly optimized render code, and exceeding the capabilities of your graphics hardware. Client side issues will be visible as bad fps (that you can see via the F3 info), which you typically want to be 60+. A big cause of fps issues can also be the overuse of Tile Entities in builds. (Microblocks, chisel / carpenters blocks and all machine blocks).

Server side issues are again related to insufficient RAM, or incorrect garbage collection parameters and express usually as bad TPS (which you want to have at 20). crowding mobs in small pens can cause the AI to consume CPU, Too many tile entities processing ticks, too many entities, poorly coded mods and mod interactions can all cause the time to process a tick to become too large to allow 20TPS.

Once you have the client or server performing badly - and the cause is still not otherwise obvious - you can download and use a tool like warmroast to profile the poorly performing java vm and the resulting log will generally point directly at the code responsible for the poor performance.
 

zBob

New Member
Jul 29, 2019
247
0
1
Do you see this issue for both 1.7.10 and 1.10.2 packs? And are you running a resource pack?
 

Reddis

New Member
Jul 29, 2019
397
2
0
I would bet money you need to change the version of java you are using. First confirm you have a 32x or 64x operating system and then confirm you are using the matching type of java. If that doesn't help try a different version of java. I had an instance once that acted like yours is and I have to use a build that was 2 or 3 releases older.

If that doesn't fix it, I guarantee you are using a mod that has a memory leak.
 

Baron_Falcon

New Member
Jul 29, 2019
433
3
0
Hey thanks for all the replies. I do have an i5, but its a win 7 machine, no problems at all and I have a very large single player Infinity game on it.

This comp is 64bit, and has the latest 64bit java, in fact FTB won't launch without it. However I haven't tried rolling back the version, that's a good idea.

I will say I'm using an older version of infinity and older version of extra tic prior to the enderium nerf, but Im running the same on my i5 win7 machine.

I played the new DW 1.10 and didnt have any issues. However I was also using Curse to launch it. I deleted curse when I did clean minecraft and FTB installs and havent tried Curse again, it was a little laggy compared to FTB launcher. I may give that a shot.
 

Hambeau

Over-Achiever
Jul 24, 2013
2,598
1,531
213
As a side question, are you a "Windows Insider"? The next build on the "fast" ring, out in the next few days, will have the first iteration of "Game Mode"... This apparently will allow you to halt or put all windows processes not related to the game being played into the background while the game is running, supposedly increasing game performance.

Whether this will work with the conglomeration that is Minecraft remains to be seen, but I will be testing it out.
 
  • Like
Reactions: ICountFrom0

Baron_Falcon

New Member
Jul 29, 2019
433
3
0
Well gentlemen, I think I solved my issue. I decided to play TerraFirmaCraft since FTB wouldn't work, and the vanilla launcher wouldn't load and said it was corrupted. I think this may have happened during all the uninstalls and reinstalls. I reinstalled minecraft and now FTB is loading and running fine. CPU for java maxing at 50% and RAM at less than 3Gb which is really low from what I normally see, but i did lower that to 2Gb in the launcher when I was troubleshooting so maybe thats part of it. Anyway, I really appreciate all the helpful replies, even though they weren't solutions for my particular problem, it helped encourage me to keep at it when I was ready to give up and might help someone else or even me down the road. Cheers.