Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

Java.exe eating up 70-80% CPU, lagging [SOLVED, TURN OFF AV]


  • Please log in to reply
28 replies to this topic

#1

Greedish

Posted 26 January 2011 - 09:22 PM

I'm having a terrible time trying to set up a Bukkit server - It's okay with two people in it, but as soon as the third enters it starts lagging horribly and task manager shows java.exe as using up to 80% CPU - I have an i5-750, this shouldn't be happening.

I have tried dedicating more RAM, reinstalling Java, using the x86 and x64 versions, running a clean bukkit server with no plugins, using several different builds of bukkit, and nothing helps.

Please, somebody give me a hand here!

edit: solved, turn off your antivirus' realtime protection.

Register or log in to remove.

#2

ThePanda

Posted 26 January 2011 - 09:23 PM

are you running the server and the client on the same computer?

#3

rch
    rch

    Minecraft.cm

  • Members
  • 4104 posts
  • Location: Florida
  • Minecraft: rch

Posted 26 January 2011 - 09:29 PM

Greedish said:

I'm having a terrible time trying to set up a Bukkit server - It's okay with two people in it, but as soon as the third enters it starts lagging horribly and task manager shows java.exe as using up to 80% CPU - I have an i5-750, this shouldn't be happening.

I have tried dedicating more RAM, reinstalling Java, using the x86 and x64 versions, running a clean bukkit server with no plugins, using several different builds of bukkit, and nothing helps.

Please, somebody give me a hand here!

Changing between x86/x64 isn't going to help you at all. Are you running a 64bit version of Windows? If so, you'll need to use the x64 startup options. If you have 32bit Windows, you'd use the x86 option.

How much memory are you using to start up the server?

I've heard some people saying that just adding craftbukkit to their fresh vanilla install is causing some major issues. Since craftbukkit isn't complete yet I'd say it's safe to say your issues lie with that.

#4

Greedish

Posted 26 January 2011 - 09:38 PM

Just confirmed that good ol' regular minecraftserver.jar from minecraft.net in a new server does the exact same thing! I'm running Windows 7 64-bit, and have tried using 1 and 2 gigs of RAM, with absolutely no difference.

It's not a bukkit problem since it does the same thing with the regular server.

Yes, I am running the client and server on the same computer and it should be perfectly capable of handling that. Even if it weren't, I did think of that and got three friends to join without me being there, which did the exact same thing (70-80% CPU usage, terrible delays and lag).

#5

rch
    rch

    Minecraft.cm

  • Members
  • 4104 posts
  • Location: Florida
  • Minecraft: rch

Posted 26 January 2011 - 09:40 PM

Have you tried running the exe instead of the jar? Do you encounter the same issues with that?

Keep in mine Minecraft is still beta and almost everyone I've helped has had issues with running the server and client on the same PC, no matter how fast their computers were. Some do, some don't but I generally think of it as something that causes issues.

If you have 64bit Windows then you'll only want to start the server with the x64 version of the .bat file used to start up. Can you post the code from your .bat startup file?

#6

Greedish

Posted 26 January 2011 - 09:57 PM

"C:\Program Files\Java\jre6\bin\java.exe" -Xincgc -Xmx1024M -jar craftbukkit.jar nogui

As I said, it still happens if I'm not running the client at the same time as the server so that's not the cause. I just tried the .exe and same thing, 70-80% CPU usage.

#7

rch
    rch

    Minecraft.cm

  • Members
  • 4104 posts
  • Location: Florida
  • Minecraft: rch

Posted 26 January 2011 - 10:08 PM

@echo off
"%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xms1024M -Xmx1024M -jar craftbukkit.jar
pause

That's the code you'll want to use if you're running 64bit Windows. There's a bunch more info on getting things running right here: http://forums.bukkit... ... erver.462/

Other than that I'm not really sure.

#8

Greedish

Posted 26 January 2011 - 10:16 PM

I had that one before but changed it after re-installing Java, same damn thing.

edit: I have run servers before on this machine with 2 or 3 people joining and me playing with absolutely no issue so I don't know what the fuck

#9

Greedish

Posted 26 January 2011 - 11:50 PM

Bump?

#10

-OC-Pik4chu

Posted 27 January 2011 - 12:06 AM

I assume you have uninstalled and entirely reinstalled the latest version of java?  Had to do that on my g/f's computer over the weekend because minecraft started freezing randomly.

#11

Greedish

Posted 27 January 2011 - 12:27 AM

Yep, did that. What's weird is I've hosted before with the same setup so I have no idea what is wrong.

#12

Scott
    Scott

    Gold Miner

  • Curse Premium
  • Curse Premium
  • 355 posts

Posted 27 January 2011 - 12:32 AM

How much RAM do you actually have? I've had issues with it using more than you allocate and it ends up using swap space (or pagefile if you're on Windows).
https://allgamer.net/ - Minecraft, Xen VPS, and Dedicated Server Hosting
Email/AIM/MSN: scott -at- allgamer -dot- net
Toll-free United States: 1.888.215.0640
iNUM: +883 510008273659
Extension: 902

#13

Greedish

Posted 27 January 2011 - 03:54 AM

4 gigs of RAM.

#14

frymaster

Posted 27 January 2011 - 04:24 AM

you could try installing the jdk (java development version) which would let you use the "-server" startup option, which makes it take slightly longer to start up, but run better.  Realistically, though, something's fucked up :Diamond:

you say the normal server does this too; does this happen with a fresh world, or only the pre-existing one?

#15

Greedish

Posted 27 January 2011 - 04:43 AM

Both.

#16

Greedish

Posted 27 January 2011 - 05:06 AM

My friend just tried hosting with his computer that is largely the same as mine, and he gets 14-28% cpu usage and it doesn't increase much at all with more players. And he's playing on the same machine so I'm very confused.

#17

supersimono

Posted 27 January 2011 - 04:56 PM

I host a server on my laptop and run minecraft on it to at the same time. Seeing as my laptop is 2 years and its managing to run both never stops to amaze me! It goes through laggy phases only when im playing but apart from that its ok. I only wish there some server software that didn't run java....

#18

ThePanda

Posted 27 January 2011 - 05:11 PM

supersimono said:

I host a server on my laptop and run minecraft on it to at the same time. Seeing as my laptop is 2 years and its managing to run both never stops to amaze me! It goes through laggy phases only when im playing but apart from that its ok. I only wish there some server software that didn't run java....
well the game is made out of java so....

#19

Greedish

Posted 27 January 2011 - 05:40 PM

Actually the process my friend was looking at that was using 14-24% of the CPU was javaw.exe, which is the game, the server was using less than 10% at all times! We were blowing everything up! Why the hell can't I run a server?

#20

dust31
    dust31

    Tree Puncher

  • Members
  • 22 posts

Posted 27 January 2011 - 06:15 PM

minecraft server has been terrible for past 10-15 days since that update.
Try disabling monsters, it seems to be the cuase of the lag however not sure if its gona help ur CPU usage.