Help with lagg

  • 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

TheMadCrafter88

New Member
Jul 29, 2019
3
0
0
I'm at a loss, I'm trying to play ftb monster and other ftb mods and the lag is so bad i cant play. I have 5gb ram dedicated to it.(have a total of 8 on computer total ram usage is only 65-70% when trying to play with other things running) My cpu usage is around 67-80% while playing. Ive seen people have had luck with adding this to the adv perm under options -XX:MaxPermSize=128M Ive added this and even tried to increase with no luck. Ive checked my java 64bit all seems well there. Ive increased the ram(allowing enough room for other applications to run) and lowered with no luck. Any suggestions?
 
Lower RAM to 3 GB, 3.5 for a 64x TP. Otherwise, Java garbage collection takes forever and cannot process correctly.

Also, are you running Optifine? If so, try without it. Does this happen on a new world, or just developed ones? Have you added any mods / removed any? Is it a drop in FPS or tick rate?
 
This is a problem with fresh world loads, Ive waited awhile to allow worlds to load as well with the same result. Fps rate. Its a fresh install of monster. In the past ive played around with removing mods and etc, with no luck. I was thinking maybe my graphic card couldnt handle it but I've ran a friends custom pack on a different launcher with around 190 mods with no issue.
 
I just installed optifine. Seems to be much better still a little lag but i think once i play around with the settings i should ve golden. Also lowering the ram to 3.5 also showed signs of improvement. Thank you
 
I just installed optifine. Seems to be much better still a little lag but i think once i play around with the settings i should ve golden. Also lowering the ram to 3.5 also showed signs of improvement. Thank you

As a warning, Optifine's rendering hacks tend to cause some weird graphical issues with some mods. Some people don't have these issues though, so hopefully you don't see them.
 
I reloaded FTB from scratch to clean up my hard drive a bit, and now I'm getting the awful lag spikes too. Searching for a solution but I have a question. Please advise and correct anything I have wrong. Monster v1.1.2, no Optifine, just default everything except I turn Opis on in the mod list.

I have 32GB of RAM because I'm a photographer and do a lot of photoshopping... I like to set my FTB launcher to use 8GB because I use the Sphax 128x resource pack which I understand requires 8 gigs. I tried 2GB and game wouldn't run. I tried 3GB and the game ran, but it was all stuttering and laggy. I tried 4GB and it ran fine, but after a few minutes the stuttering and lag showed up. Finally, I put the slider up to 8GB but still getting stuttering so I'm thinking it's my java arguments (java is up to date, I have both 32 bit and 64 bit installed).

So here's my question - when I copy the java arguments from this helpful thread for "FTB Launcher", it only allocates "2048m" for -Xms. Should I change that to -Xms8192m in my situation, or is that going to cause me the apparently well-known problem with the "java garbage collection"? Is that what my stuttering is all about?

Before I stupidly decided to reinstall my FTB, everything was running just fine with the slider on 8GB and the same java arguments. I played around with shaders the other day which is why I decided to wipe everything out and start fresh again.
 
Last edited:
  • Like
Reactions: MigukNamja
Pretty sure I've read that you should remove the 32bit JRE if you have 64bit installed.
 
I reloaded FTB from scratch to clean up my hard drive a bit, and now I'm getting the awful lag spikes too. Searching for a solution but I have a question. Please advise and correct anything I have wrong. Monster v1.1.2, no Optifine, just default everything except I turn Opis on in the mod list.

I have 32GB of RAM because I'm a photographer and do a lot of photoshopping... I like to set my FTB launcher to use 8GB because I use the Sphax 128x resource pack which I understand requires 8 gigs. I tried 2GB and game wouldn't run. I tried 3GB and the game ran, but it was all stuttering and laggy. I tried 4GB and it ran fine, but after a few minutes the stuttering and lag showed up. Finally, I put the slider up to 8GB but still getting stuttering so I'm thinking it's my java arguments (java is up to date, I have both 32 bit and 64 bit installed).

So here's my question - when I copy the java arguments from this helpful thread for "FTB Launcher", it only allocates "2048m" for -Xms. Should I change that to -Xms8192m in my situation, or is that going to cause me the apparently well-known problem with the "java garbage collection"? Is that what my stuttering is all about?

Before I stupidly decided to reinstall my FTB, everything was running just fine with the slider on 8GB and the same java arguments. I played around with shaders the other day which is why I decided to wipe everything out and start fresh again.

I started getting client lag when I had to update Java for another reason (besides MC). When I check my resources, I'm CPU bound on my client. My server is on the same LAN on a different machine and it's happy @ 30% CPU usage on a single core when I'm connected, and 20% when I'm not, spiking to 80% or when I fly around and cause worldgen to run on new chunks.

I suspect the newer Java code is buggy/inefficient. I'm on JRE 7 u67, 64-bit. 8GB system RAM, 3GB set for Java in FTB launcher.
 
Pretty sure I've read that you should remove the 32bit JRE if you have 64bit installed.

When I go to the following page and see these words, this is why I don't think it's really a problem to have both:

http://www.java.com/en/download/manual.jsp

"We have detected you may be viewing this page in a 32-bit browser. If you use 32-bit and 64-bit browsers interchangeably, you will need to install both 32-bit and 64-bit Java in order to have the Java plug-in for both browsers."

Having said that, I don't think I have both versions on my machine, just the 64 bit (because I don't run java in my web browser, Firefox says it's a security risk and unnecessary. I often confuse "java" with "javascript").
 
The java browser plugin is (or at least used to be) completely separate from JRE (Java Runtime Environment). The later is what actually runs minecraft. Or so that's how I understand it.
 
The java browser plugin is (or at least used to be) completely separate from JRE (Java Runtime Environment). The later is what actually runs minecraft. Or so that's how I understand it.

If I go to Control Panel (Win7) and click on "Programs", I see an entry for Java, so I click on it and get a popup window. Clicking the security tab, there is a checkbox at the top for "Enable java content in the browser", and it's checked (I didn't check it, so it must be checked by default upon install).

But Firefox add-ons screen has the java browser plugins disabled with those warnings I mentioned. I decided not to enable them, to just leave them alone.

So are they separate? I dunno, but they don't seem very far apart if so. :)
 
When I go to the following page and see these words, this is why I don't think it's really a problem to have both:

http://www.java.com/en/download/manual.jsp

"We have detected you may be viewing this page in a 32-bit browser. If you use 32-bit and 64-bit browsers interchangeably, you will need to install both 32-bit and 64-bit Java in order to have the Java plug-in for both browsers."

Having said that, I don't think I have both versions on my machine, just the 64 bit (because I don't run java in my web browser, Firefox says it's a security risk and unnecessary. I often confuse "java" with "javascript").

You can have both installed but I believe the 32-bit version, if installed first, runs by default.
 
You can have both installed but I believe the 32-bit version, if installed first, runs by default.
This. Knew there was a reason I uninstalled 32bit. And as for changing between 32 and 64 bit browsers... even internet exploder has a 64 bit version, or is 64bit normally.
 
And as for changing between 32 and 64 bit browsers... even internet exploder has a 64 bit version, or is 64bit normally.

Understood, but again the java site says:

http://www.java.com/en/download/faq/java_win64bit.xml

"64-bit Windows operating systems (which may be Windows 7, Vista or XP) come with a 32-bit Internet Explorer (IE) browser as the standard (default) for viewing web pages. These operating systems also include a 64-bit Internet Explorer browser, however using it is optional and it must be explicitly selected to view web pages. Note that because some web content may not work properly in a 64-bit browser, we recommend using the default 32-bit browser and downloading 32-bit Java."

See why this stuff is so confusing? It's very easy to read that and conclude, "Well I guess I need 32 bit then". LOL

But yeah, if I can run 64bit, then I run 64bit obv. For those interested, this page explains why. I learned a lot reading it, it even begins to explain all this talk about GC, or "garbage collection" in java.

--------------

EDIT: I just discovered that I have two entries in my Programs list... "Java 7 Update 67" and right below it is "Java 7 Update 67 (64 bit)". Apparently, I did have both 32 bit and 64 bit versions installed? Well I just uninstalled the one that didn't say 64 bit, and now I'm gonna reboot and see if my Minecrafting experience is any different. If it is, I'll report back... nope, no difference, I must've been running 64bit.
 
Last edited: