Question about proformance in single player vs localhost ser

General help with our resourcepacks, our website, or Minecraft - including mods.
Locked 
User avatar
20 Posts
 x 0

Post 16 Oct 2013, 18:53

I have a question as I am not 100% sure I understand what is happening.

If I run MC single player vanilla I have no issues with lag or anything.

If I run MC server ((vanilla)on same machine I play on) and login as localhost I have no issues.

Now, I can load PureBDcraft x128 and play single player with no issues however if I try to load the server up and login under localhost my FPS drop to like 5.

My system construction is:

AMD Phenom II X2 555 Black Edition Callisto 3.2GHz
8GB DDR3
Western Digital WD VelociRaptor WD1000DHTZ 1TB 10000 RPM
2x Radeon 4770 512mb

In the server bat I am allocating 4096MB and in Tekkit Lite interface I have 1.5GB allocated to MC. Watching my system resource monitor I don't appear to ever raise above 7GB of total memory use. My CPU is not really ever above 50% load.

When I look at the memory being used by the server it floats around 200MB.

So I guess what I am wondering is why can I play in single player MC with PureBDcraft x128 installed with zero issues but as soon as I load the server and play as localhost it is almost impossible to play. That is also while on the server alone, server is only being used to play through local network that is Gigabit.

I have tried installing PureBDcraft x32 and it is playable at about 30ish FPS but laggy.

I guess I am just missing the logic of why the server using 200MB is causing such a resource issue.

If I upgraded the Ram to 16Gb of DDR3 would that fix the issue or maybe drop my older Radeon 4770's for a single XFX Radeon HD 7970 GHz Edition 3GB 384-Bit GDDR5?

Thanks in advance for your help.


I am not 100% sure if this is considered a "General Topic" issue or a "Help" issue, just trying to understand why this is happening. I do apologize if I posted in the wrong area.
If you like our work please consider becoming a Supporter and get an ad-free experience.
User avatar
Former Staff
1033 Posts
 x 0

Post 16 Oct 2013, 19:12

[Moved to HelpCenter]

So you're running the server and playing minecraft on the same machine?
User avatar
20 Posts
 x 0

Post 17 Oct 2013, 00:46

Yes, same machine.... The instructions for local server didn't seem to indicate that would be an issue, just said to be able to play you have to put "localhost" where you would normally put your IP Address.

Like I said before, runs fine in single player and runs fine on multiplayer (vanilla) but my resources indicate I still have room for expansion but I am lagging bad when I apply PureBDcraft.

I am running OptiFine_1.4.6_L_B5 also but really unless I turn everything off I see no real improvements.

Also my MC build is 1.4.7 and I am using Tekkit Lite 1.6.5 if that matters.

On a totally note I was able to install FTB with PureBDcraft x32 and run it in multiplayer mode (on the local server) and I am able to play with just a tad bit of lag.

So I am guessing maybe my .bat file is messed up? Here is my server .bat file:

java -Xms4096M -Xmx4096M -jar TekkitLite.jar -o true --nojline --nogui
PAUSE


To be honest I copied the bat file off a post on the forums somewhere, I have no idea how java works. I just want to be able to play MC with my family here at the house (no external players).

Viro
User avatar
Former Staff
1033 Posts
 x 0

Post 17 Oct 2013, 08:19

The problem is, not only is your server taking resources to run, but so is your minecraft client, which also means you'll have two JVM's (java virtual machines) running at the same time. This is very taxing not only on your RAM but also on your processor. I, myself, have tried running a server off the same machine I played on and I got the same results as you. I had to lower my resolution to make it bearable, but in the end I moved it to a separate computer.

My advice, if you can, move the server to a computer you're not going to use to play the minecraft client. Otherwise, you're going to have to deal with making some graphical sacrifices. If minecraft was written in a proper programming language, this wouldn't be an issue, but sadly we're stuck with the pitfalls of java.

One final note. I believe I stuck minecraft on a virtual machine as a last resort which allowed me to play minecraft on that same machine with little to no lag, but that obviously takes a bit of setup and learning. I'd be happy to point you in the right direction if that's the way you want to go with it, but I'm hoping you have a computer you're not using you can use to host the server.

[edit]
Almost forgot... If you want to run both the server and the minecraft client at the same time, I really would suggest bumping up your RAM to 16 gigs, especially if you go the VM route. Windows itself is quite bloated and you'll fly through that 8 gigs really quickly with both the server and the client. This of course also depends on how many mods and players you'll have on the server, but if you can afford to, definitely go 16 gigs if you don't have another computer.
User avatar
20 Posts
 x 0

Post 17 Oct 2013, 15:38

To be honest I didn't even think of running it on a VM. I do have VMware already installed with Windows XP on it. However I am not quite sure (because I have never done this) how I go about logging into the server running on a VM. I mainly just used it for backwards compatibility with some programs I have that won't work on Win 7/8.

If you can help me with that setup I would really appreciate it.

My rig is about 3-4 years old now, I am not sure how much luck I am going to have trying to find 4GB DDR3 RAM for my MB that is on it's compatibility list but I will start looking right away. See if I can have ordered today.

Lastly, if I were to splurge and toss together a machine that does nothing but host a server for this game, what kind of specs would it need to have? I know XP had some memory leaking issues, would I be better off trying to run the server on XP which uses less memory?

Would I be able to have multiple servers running on it (one for Tekkit Lite and one for FTB) at the same time so the kids can login to whatever one they want or is that just running into the same issue I have currently.

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

On a separate issue, last night on my son's computer it developed a issue I can't fix and it has totally made using PureBDcraft impossible to use. Just totally randomly now when we try to login to Tekkit Lite or even MC with PureBDcraft installed we either get a MC has crashed screen or it loads to the options screen but there is white box's in place of the words and the main title "Minecraft" is missing but the textures indicating the texture pack has loaded are there.

If we select any box it just locks up. However in vanilla modes it works fine. I took my PureBDcraft x32 that I use on my machine and replaced his thinking maybe it got corrupted but it has the same result. He normally runs the x128 without issue and no OptiFine. No idea what happened it just stopped working.

I have tried:

1.) Add/Remove Programs uninstalling Java and re-installing Java 7 (45) 32 bit
2.) Deleting the minecraft.exe and Tekkit Lite launcher.exe and deleting the related folders in "AppData\Roaming" and re-downloading Minecraft & Tekkit Lite and allowing them to re-install
3.) Cycle through several versions of video drivers thinking maybe somehow a new one was installed and it is messing up the works.

I am out of ideas, This has ran flawless for the last month then up and quit. I am out of ideas. Thoughts?


Thanks again for your help!

Viro

-- 17 Oct 2013, 09:38 --

Ok, decided to just rebuild my machine, if I'm going to spend money might as well just setup a new configuration. Can you tell me if this configuration would be able to run a server and play MC at the same time?

Video: SAPPHIRE 100363TXSR Radeon R9 280X 3GB 384-bit GDDR5
Motherboard: ASUS SABERTOOTH 990FX R2.0 AM3+
RAM: Corsair Vengeance 32GB (4x8GB) DDR3 1600 MHz (PC3 12800)
CPU: AMD FX-9590 Vishera 4.7GHz Socket AM3+ 220W Eight-Core
HD: WD Velociraptor WD1000DHTZ 1TB

I could just setup the server on my existing machine after the build but it uses a lot of power and for a server it might be overkill?

Thanks for the help!
User avatar
BDcraft Web Admin
6620 Posts
 x 437

Post 17 Oct 2013, 17:07

You're being overly focused on RAM for some odd reason. Not sure why Minecraft people do that :P

When it comes to a server, sure RAM is helpful as you can keep more in the memory with less swaps, but it's all down to CPU. CPU is for processing and running whilst RAM is for keeping chunks in memory (so you can have more people on). [this is incredibly simplified]

Obviously the new CPU you've chosen will work wonders, but due to the fact that everything is technically being processed twice (once in the client and once in the server) it is always best to use a second computer for a server because if your PC lags whilst rendering something such as textures, or you open a program, you'll lag the server. However, 32GB of RAM is overkill for anything unless you're processing video?

I'd not recommend a VM on the same machine because you still require the resources all you're doing is having a the Java Environment inside a VM environment (which for Windows can be costly due to the emulation needed on the Mobo and CPU).

Basically, if you can do it, and it's within your budget and you're not just doing it for Minecraft, sure get a new PC and then use the second old one for a server. I'd recommend an OS strictly for being a server though like some flavour of Linux with no GUI... that could be too technical for some. However, there are Linux Minecraft OSs strictly made just for running server (most notably MineOS) which are relatively simple to set-up.

FYI, these are the specs of my server machine which should quite happily run 4 players as long as things don't get overly intense!:
CPU: AMD Athlon(tm) II X2 240e Processor @ 2800MHz
RAM: 2GB 800MHz DDR2
Video: None! Linux dumb terminals ftw :P

However, instead of spending thousands of your native currency on a new PC you could just buy hosting for a few bits of it a month ~$4/mth for a 4 player server. More if you want more players or possibly more control over it.
As for your son's white textures that could be down to RAM as the world has grown it's using more and as such you'll need to either give it more or you'll need to use lower resolution textures.
Profile pic by TsaoShin: https://www.deviantart.com/tsaoshin
User avatar
20 Posts
 x 0

Post 17 Oct 2013, 19:34

OK, I think I understand about the server.

Regarding the hosting a server thing, how exactly does that work? Can I use Tekkit Lite and or FTB on it and is it possible to move my worlds to that? Is there a bunch of hoops and upgrade versions of stuff to deal with? I was thinking about installing World Edit on my Tekkit Lite server so I can really have fun building, is that possible on a hosted server?

That new system build isn't for MC only LOL, I do a lot of 3D and AutoCAD stuff as well as play games, this just gives me an excuse to pull the trigger and upgrade! LOL


About my son's computer, it is giving us the white box where the txt is without even loading up a map, just sitting at the option page, are you saying the memory might be failing?

Thank for all the great info!

Viro
User avatar
Former Staff
1033 Posts
 x 0

Post 17 Oct 2013, 20:17

Can you give us a screen shot of your sons minecraft and the crash log when it crashes? This will allow us to better assist you on that issue.

As far as your new PC, Hanfox is right, 32 gigs of RAM is a tad overkill haha. And if you're willing and able to spend that kind of money on a new system, you might as well build a lesser computer for your minecraft server. Minecraft hosts are kind of hit and miss... I believe most of them provide as-is configuration with different flavor selections (FTB, tekkit, etc..) which will make it a little difficult to customize, but I don't have much experience in that area. Just look around and make sure that it doesn't limit you to selecting from a specific configuration and that it gives you full access to the core server files.
User avatar
20 Posts
 x 0

Post 17 Oct 2013, 23:29

Ok... So I just got on my son's computer to get the crash log and it worked fine... The only possible thing I can think of that is different is the server is running and I am not active playing at the same time. BUT it was acting goofy prior to connecting to any game.

I found the log from yesterday in the \AppData\Roaming\.technic\logs directory, is that the log you need or is there another log somewhere else?

Viro
User avatar
Former Staff
1033 Posts
 x 0

Post 17 Oct 2013, 23:59

Go ahead and paste that one. I'll let you know.
Locked