Nachoman44

Insane lag spikes - Unplayable

Recommended Posts

I'm experiencing insane lag spikes every 5 seconds in my single player world, it's literally making it unplayable! Before you start replying saying I need to allocate more RAM & install optifine, i've already done that.

Allocated RAM: 4GB

 

I'm playing on a mac, though i'm getting around 40 - 60 fps whilst playing on the mod pack, lagspikes bring it down to 0 - 5 fps. *sadfaic*

 

So yup, if you guys are or have been experiencing something like this and know a fix, PLEASE reply as I love the mod pack but am unable to play due to the lag spikes.

 

Lag spikes should be killed. Whoever created them should be lag spiked to death.

 

Oh, YES I am on the latest version of java. 

Share this post


Link to post
Share on other sites

Drop your RAM to 2 or 3 Gb, allocating more can cause lag as java attempts to perform garbage collection

Beyond that we can't suggest anything without more info, logs for example

Share this post


Link to post
Share on other sites

Drop your RAM to 2 or 3 Gb, allocating more can cause lag as java attempts to perform garbage collection

Beyond that we can't suggest anything without more info, logs for example

and how are you supposed to drop your RAM?... instructions would be nice. not like everyone knows how to do that. i could look it up but who has time for that lol.

Share this post


Link to post
Share on other sites

Drop your RAM to 2 or 3 Gb, allocating more can cause lag as java attempts to perform garbage collection

Beyond that we can't suggest anything without more info, logs for example

 

 

ok... dropping the RAM doesn't make sense. how's that going to help? i have 6GB RAM. dropping your random access memory would only make more lag in theory so i'm not seeing how this would help.

Share this post


Link to post
Share on other sites

It's a Minecraft oddity, asking Jeb is probably the way to go if you want details but it's easy enough to prove by adjusting the amount Minecraft can use.  I think it's down to the more RAM you have the less often it clears up, and whatevers in memory gets checks run on it (movement prediction and redstone) so the CPU eventually gets overloaded regardless of how powerful it is at a certain point.

 

A good rule of thumb for minecraft is the greater the RAM that's assigned the more stable it is, the lower the faster (to a point, too low and it starts to slow down again, this only applies if the amount you're assigning is already enough).  That's why Maxis010 suggested 2-3GB, that's typically a good amount for a client.

 

You set the amount of RAM a java program can use when it runs, in the case of the server on minecraft it's the -Xmx (max assignable memory) -Xms (initially assigned memory) in the batch file, and in the case of the Technic launcher for you client it's the convenient little gear in the top right, pick your pack, click the gear, set a value from the dropdown and hit save.

Share this post


Link to post
Share on other sites

That's why Maxis010 suggested 2-3GB, that's typically a good amount for a client.

 

in the case of the Technic launcher for you client it's the convenient little gear in the top right, pick your pack, click the gear, set a value from the dropdown and hit save.

 

I'm using the technic launcher and i clicked the gear but the max i can set it to is 1GB then 768MB and 512MB. The suggested is 2 to 3 GB as you say but that's way above what it will let me set. I know i have 6GB of ram so idk why it wont let me set it higher.

Share this post


Link to post
Share on other sites

My specs are.

 

Windows 7

Rating:              5.9 W.E.

Processor:         Intel® Core i5-3210M CPU @ 2.50GHz  2.50 GHz

RAM:                 6.00 GB

System type:     64-bit Operating System

 

 

does that help any?

Share this post


Link to post
Share on other sites

I'm using the technic launcher and i clicked the gear but the max i can set it to is 1GB then 768MB and 512MB. The suggested is 2 to 3 GB as you say but that's way above what it will let me set. I know i have 6GB of ram so idk why it wont let me set it higher.

You are running on 32bit java, install 64bit java and if you still don't see options above 1 Gb uninstall 32bit java

Share this post


Link to post
Share on other sites

Hi

 

Just to summarise what has already been said and some insights:

 

1) Minecraft (and therefore most or even all its mods) are written in Java and are therefore run with a Java Environment. Java has very specific methods on handling certain things, including the allocated RAM. As a user you can allocated/dedicate RAM to Java (and its "Server" in which it runs the code/programm so to speak). Usualy one would think "the more, the merrier". In Java, however, this is not necessarily the case as Java is checking the RAM regurarly for unused objects and removes them. That particular process uses up ressources (mostly CPU time) and therefore may cause lag to all other programs (including the code that runs in that java environment -> minecraft)

This is why people suggested that you may not want to allocate all the available RAM to Minecraft, even though it makes sense in the first place to do so. With less RAM, Java is less inclined to do those sweeps and, more importantly, those sweeps of the RAM takes less time (as there is less RAM to be checked).

Please bear in mind that this explanation is very basics, I am sure there are tons of details and other things I have left out that Java programmers and intense users would need to know. So do not take it too literally, just as a start to understand.

 

2) As pointed out, the Launcher gives you a chance to allocate how much of your (usually free) memory you want to use for minecraft. The amount that is offered in this drop down menu is very much dependend on two things: Your PC architecture (including software) and the amount of RAM you actually have.

While it is obvious that you can not allocate 12 GByte of RAM if you just have 4, the first thing maybe a little more difficult to grasp.

A computer running on Windows (or linux for that matter) that is "designed" for 32bit operations or has Java installed that is only designed for 32bit will not (easily) be able to address more than 3.6 GByte of RAM. The Launcher wil therefore offer only 1 GByte (or maybe 2) as the most RAM you can allocate.

To avoid this you need an operations system for 64bit and Java for 64bit installed. Make sure that your CPU can handle it (if your computer is not more than 5 years old, it will be able to run 64bit).

If the Launcher correctly finds the 64bit Java installation, it will offer more than 1 GByte of RAM.

 

3) It was pointed out in another thread ('?do=embed' frameborder='0' data-embedContent>>) that for some reason the configuration in the Launacher has been overwritten. While the launcher said it would be using 4 GByte RAM, only 1 GByte was used in reality.

It had something to do with Windows environment variables. I will try to find the thread -> EDIT: found it

 

 

best regards

Rover

Edited by Roversword

Share this post


Link to post
Share on other sites

I have the same problems. Minecraft needs about 40 seconds to load and then I can barely move Steve or even look around - 5FPS max.

I already tried changing the allocated RAM - from 1GB to 6GB - no difference what so ever.

In the debug screen of MC it shows that MC is allocating only 35% of what it could.

The technic launcher is recognizing the right java installation.

 

My specs:

Intel Core i7-2670QM 2.2GHz

NVIDIA GeForce GT 555M Cuda 2GB

16GB DDR3 RAM

Windows 7 64-bit

Java Version 7 64-bit

 

I checked point 3) of Roversword's post. I have no such variable.

 

Hope anyone knows what's causing this, since there are a lot of people out there who have this problem - and then there are those who haven't :-)

 

Thanks in advance.

Share this post


Link to post
Share on other sites

I'm experiencing insane lag spikes every 5 seconds in my single player world, it's literally making it unplayable! Before you start replying saying I need to allocate more RAM & install optifine, i've already done that.

Allocated RAM: 4GB

 

I'm playing on a mac, though i'm getting around 40 - 60 fps whilst playing on the mod pack, lagspikes bring it down to 0 - 5 fps. *sadfaic*

 

So yup, if you guys are or have been experiencing something like this and know a fix, PLEASE reply as I love the mod pack but am unable to play due to the lag spikes.

 

Lag spikes should be killed. Whoever created them should be lag spiked to death.

 

Oh, YES I am on the latest version of java. 

 

I have no experience with mac. But if it has graphical drivers try to update them.

 

Aslo for 

 

I have the same problems. Minecraft needs about 40 seconds to load and then I can barely move Steve or even look around - 5FPS max.

I already tried changing the allocated RAM - from 1GB to 6GB - no difference what so ever.

In the debug screen of MC it shows that MC is allocating only 35% of what it could.

The technic launcher is recognizing the right java installation.

 

My specs:

Intel Core i7-2670QM 2.2GHz

NVIDIA GeForce GT 555M Cuda 2GB

16GB DDR3 RAM

Windows 7 64-bit

Java Version 7 64-bit

 

I checked point 3) of Roversword's post. I have no such variable.

 

Hope anyone knows what's causing this, since there are a lot of people out there who have this problem - and then there are those who haven't :-)

 

Thanks in advance.

and

My specs are.

 

Windows 7

Rating:              5.9 W.E.

Processor:         Intel® Core i5-3210M CPU @ 2.50GHz  2.50 GHz

RAM:                 6.00 GB

System type:     64-bit Operating System

 

 

does that help any?

 

Do you have the most recent driver version of your graphics card?

Share this post


Link to post
Share on other sites

@arriej: Yes, I have the recent driver version.

 

I just found something.

When I start the game with NVIDIA high performance processor - I can opt this option to the context menu of programs from the NVIDIA system panel - it runs ok/fine.

I think this could help many others.

Share this post


Link to post
Share on other sites

Again from the other thread (trying to keep it in one place to make future searches for people easier)

 

You were right. i downloaded Java 64-bit and i can now select more GB. But doing so didn't fix my problem. In fact i think it just made it worse. Upping the GB to 2 or 3 made the lag spikes more frequent.

 

More frequent is a surprise, can you run task manager (right-click on taskbar and pick it), go to the performance tab so you can see CPU usage, then play B-Team in a window and watch to see if the CPU usage spikes with the lag spikes, and how high it goes (does it top out).

Share this post


Link to post
Share on other sites

i5-3210M CPU

This part is critical.  It means you have a laptop.  Please see (even though it turned out he didn't have a dedicated card).  All you really have to do is this:

 

When I start the game with NVIDIA high performance processor - I can opt this option to the context menu of programs from the NVIDIA system panel - it runs ok/fine.

Share this post


Link to post
Share on other sites

More frequent is a surprise, can you run task manager (right-click on taskbar and pick it), go to the performance tab so you can see CPU usage, then play B-Team in a window and watch to see if the CPU usage spikes with the lag spikes, and how high it goes (does it top out).

 

64% to 72% cpu usage is the highest it gets. and it stays around there.

Share this post


Link to post
Share on other sites

That's good, we can pretty much rule out CPU bottlenecking you then which points to the graphics like Torezu is suggesting.

 

The integrated graphics on the 3210M is the Intel HD 4000, and if you're using that then this kind of thing is inevitable on a large modpack unfortunately.  You said you'd tried lowering the view distance and things like that before - can you give that another shot now?  Don't switch to Max FPS - leave that on balanced, but make sure you've got the view distance on tiny, graphics on fast, smooth lighting down or off and turn particles to minimal.

 

This is just for testing, not to leave it like that - try that with 2GB set in the launcher and see if it's any different than when we started this.

Share this post


Link to post
Share on other sites

What happens if you run a local server then connect, rather than it happening through singleplayer?

 

I mean if you grab the server from here;

http://mirror.technicpack.net/Technic/servers/bteam/BTeam_Server_v1.0.8.zip

then run it and connect through multiplayer in the launcher (connect to 127.0.0.1).

 

This should point to some other bottleneck (like disk writes from the worldgen) if it's the same deal, or some other bug if it's OK (something specifically in the singleplayer stuff).

Share this post


Link to post
Share on other sites

That definitely should be powerful enough to run without any issues, Ajlio, can you describe the problem any more?  No effect when you turn settings down and it behaves fine on other peoples servers, things like that?

Share this post


Link to post
Share on other sites

That definitely should be powerful enough to run without any issues, Ajlio, can you describe the problem any more?  No effect when you turn settings down and it behaves fine on other peoples servers, things like that?

look at this. This is my video i took of it.

Share this post


Link to post
Share on other sites

Oh, I responded to your PM, here's the response seeing as you posted here too for everyone else;

Hi, you've got your RAM for the pack set really low (512MB) and it's running at the max limit constantly and having to clear it every couple seconds to make room for more stuff.

 

Click the cog at the top right of the launcher and then increase RAM to at least 1GB but preferably 2GB (no higher than 3GB if you feel you must go higher though, you'll run into more problems if you do)

 

Like this;

 

OVL68lS.jpg

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By NebelC0meback
      Hello people of the Technic community, I've had this problem for around 3 weeks now, and after countless hours of research i couldn't get it to work.
      I've got the following problem:
      I've been using Ubuntu (PoPOS) for around 2 months now, and i got really familiar with it. I got minecraft from the repositories no problem whatsoever. But as i wanted to play with mods, My old friend Technic Launcher came to my mind again, so i tried to install it and play some modpacks.
      Problem:
      I've installed the correct java version (OpenJDK 8 ) and put the techniclauncher.jar as an executable. Now when i run the launcher, the installation screen pops up, everything normal. Now when i install it as a portable or just normally, it creates the directory and the installer dissapears. Everything ok until now: When i try to launch Technic again, it just crashes. The java process is running, but starts dissapearing. So i tried again with oracle Java 11. Same problem. It just crashes. When i launch it over Terminal, it gives me this:
       
      [email protected]:/home/muenzlpsaveyourinternet# java -jar '/home/directory/TechnicLauncher.jar' '/home/directory/TechnicLauncher.jar'
      Settings for exe: /home/directory/TechnicLauncher.jar
      Portable settings dir: /home/directory/technic
      Setting up logging
      And nothing else happens, the terminal doesnt continue launching, same with launching without terminal.Nothing opens , just the process i can see in my system manager
      I tried and tried, i uninstalled the runtimes, 8 and 11, tried and tried but nothing worked. I found no answer, now after 2 weeks of trying, I decided to post this here to get some answers from nice people who like to help in the community.
      If you like to help me, just post solutions or suggestions in the section down, please stay simple with ubuntu stuff since i am really new to linux and just getting started. Thanks for any response.
      (replaced my install directory with directory because its pretty much useless for help and might confuse people)
       
    • By 2003Alex2011
      I recently started a Tekkit Legends world and decided to manually add Galacticraft back into the modpack. I've been playing for around 50 hours. After returning to Earth from my space station, I noticed an insane dip in TPS. The /TPS command reveals a TPS of 0.3. I have no idea what caused this, but if anyone has any insight into whatever's going on, it would be much appreciated.
      Information:
      World Download: http://www.mediafire.com/file/3mk2wq3u5kesuyq/Tekkit.rar/file
      RAM: Java using 3.4GB of allocated 3.5GB
      If any more information is needed, I will add it here.
    • By Black_Master_812
      One of my attack of the b-team worlds crashes the game when the world loads. All the other worlds seem to work fine!
      This is a crash report -
      crash-2019-04-18_19.53.17-server.txt
      I'm not sure anyone knows any potential fixes to this, but if you do please let me know!
    • By haxx4real
      So i was playing fine until the movement starts stopping randomly like with jetpack it would stop mid flight and then back on again.I cant go walking in a straight line without stopping 3 or 4 times and it doesnt freeze just stops because everything around keeps moving when this happens. i tried many things none worked .My fps is constantly 150+ even when this spikes appen. i have no idea, if someone know how to fix pls help 
      Repluged keyboard and now its fine
    • By diniboy
      Hi,
       
      After a few hours of playing I experienced a huge TPS lag on my two player server. If I try to break a block, it appears again... The TPS is usually 0,48... And even the server stopping takes ages...
       
      However in the nether, or even farer from my house everything is okay. How can I debug what block/entity/mod causes this?
       
      My PC is strong enough (I gave it 2-10 GB of RAM) and my Java 8 is 64 bits.
       
      Thanks!