My friend and i can connect to it and play, both via "Play Offline" in the Magic Launcher. However, our server (my laptop) has only 2GB of RAM and running a server i end up with full RAM and a 900MB swap file. (RAM gets stored onto the Hard Drive), and we lag and time-out a lot because the server can't keep up.
If i run the internal server via Singleplayer, i end up with little to no lag, and can play fine. When opening my world to LAN, my friend can not connect, timing out.
I know if i set the online-mode=true on my external server it throws the same message. So..
1. Can i somehow log the internal server and see the error he gets when logging in?
2. Can i set my internal server to run in offline mode?
We are running everything in offline as we have a weak internet connection, and internet cant work over 2 interfaces with Minecraft (eth0 and wlan0) so i either have to play over internet, with 200ping, or via LAN.
The router used is a TP-LINK WR720R with its internal security features disabled.
The first thing you need to pay attention to is the hardware your 'server' is running on. 2GB is not enough to handle what you are throwing at it. Your server is going to use up memory, then your client will use up memory. Then a little more memory will be used up to track the changes and events of the world for each player connected. Two players may not seem like a whole lot, but even Linux has processes running in the background. Being a laptop, you then have a bottle neck on the CPU and GPU. If this were a modern gaming laptop with 4+ GB RAM, I can see you getting away with it, but the hardware is just too weak even then. The router has nothing to do with this as the model you describe is sufficient to do it.
I would say what you are experiencing is right on par with the hardware you are using. Just as a curiosity, how many cores on your CPU? What graphics chipset is it using?
The interesting fact is the internal singleplayer server works fine. I use Ubuntu with the i3 window manager, and my system uses 60mb at most running at idle. I switched to i3 just for this purpose. The most memory demanding process is pulseaudio, the audio driver, and it takes 9mb of RAM.
When running the game in singleplayer with OptiFine and FastCraft i get 40+FPS on a Superflat and around 25-ish on a normal biome. 30FPS on Plains, where my house is located, around 35FPS in caves. The Server save period is set to 30 minutes in OptiFine to cope with the Lag spikes.
When the game is run, with no chunks loading, and standing still i use 1.6GB of RAM, 1.7 when moving and playing normal, which is enough to run the game fine (at the framerates i specified) having 150-200MB of RAM free.
What wrecks my game is the external server running another instance of Minecraft so my friend can play and taking more RAM, so i swap almost a gigabyte of RAM.
Earlier without Applied Energistics 2 and MineFactory Reloaded we were running the external server fine, with my game running on it, swapping 700MB, and running my game and server on the same PC. Sometimes i would time out due to server stopping responding, but that happened once, maybe twice a day.
With the two mods i lag out every half an hour. But my friend, has no lag at all, 60+FPS, breaking and placing blocks with no lag.
Laptop specs:
HP Compaq Presario CQ56, AMD V140 single core processor running at 2.3GHz, 2GB of DDR3 and a AMD Radeon Mobility HD4250.
My system, AMD-6800K 4.5 GHz, 8 GB RAM and AMD Radeon R9 290 I can play single player near 60 fps with a very sizable modpack installed. Doing what you are doing, framerate drops to 35 - 30 fps.
2 GB is not enough. That V140 is not enough to run both a server AND a client on the same machine at decent performance, let alone letting the machine tank even more with another person attempting to connect. The two other mods issue might be because on the server, it's writting to and from your disc and using your processing power and memory to do so. You're chasing ghosts. Someone else can try and figure out some tweaks that might make it work, but from my experience, I just do not see it happening.
Also to point out another issue, unless you've upgraded it, the SATA drive in the laptop is 5400 RPM, that's slower than standard 7200 RPM drives in desktops (yeah, you can find some for laptops, not many). You might try an SSD...
My friend and i can connect to it and play, both via "Play Offline" in the Magic Launcher. However, our server (my laptop) has only 2GB of RAM and running a server i end up with full RAM and a 900MB swap file. (RAM gets stored onto the Hard Drive), and we lag and time-out a lot because the server can't keep up.
If i run the internal server via Singleplayer, i end up with little to no lag, and can play fine. When opening my world to LAN, my friend can not connect, timing out.
I know if i set the online-mode=true on my external server it throws the same message. So..
1. Can i somehow log the internal server and see the error he gets when logging in?
2. Can i set my internal server to run in offline mode?
We are running everything in offline as we have a weak internet connection, and internet cant work over 2 interfaces with Minecraft (eth0 and wlan0) so i either have to play over internet, with 200ping, or via LAN.
The router used is a TP-LINK WR720R with its internal security features disabled.
*Face Palm*
Offline mode and Online mode means if you're going to have your server authenticated with Mojang or not, nothing to do with your internet
Correct. I love the buttery smoothness vanilla gives me on this system. Optifine/MCPatcher alone still gives me that high framerate, just lets me up the texture pack if I desired.
SSD drives do help with games that have lots of disk reads and writes. It also helps in systems with lower physical memory that depends on swap files/spaces.
Final analysis, enjoy vanilla, it really is not that bad and put some consideration into something a bit beef-ier to play on.
First of
System details:
java.runtime.name: Java(TM) SE Runtime Environment
java.runtime.version: 1.8.0_51-b16
os.name: Linux
os.version: 3.16.0-44-generic
os.arch: amd64
sun.arch.data.model: 64
When i host a external server running Forge and 73 mods on my laptop on a different tty on Ubuntu (with i3wm), with the following server.properties
#Sun Jul 26 16:27:41 CEST 2015
generator-settings=
op-permission-level=4
allow-nether=true
level-name=world
enable-query=false
allow-flight=false
announce-player-achievements=true
server-port=25565
level-type=DEFAULT
enable-rcon=false
force-gamemode=false
level-seed=
server-ip=192.168.0.100
max-build-height=256
spawn-npcs=true
white-list=false
spawn-animals=true
hardcore=false
snooper-enabled=true
online-mode=false
resource-pack=
pvp=false
difficulty=3
enable-command-block=false
gamemode=0
player-idle-timeout=0
max-players=2
spawn-monsters=true
generate-structures=true
view-distance=5
motd=Gala's server
My friend and i can connect to it and play, both via "Play Offline" in the Magic Launcher. However, our server (my laptop) has only 2GB of RAM and running a server i end up with full RAM and a 900MB swap file. (RAM gets stored onto the Hard Drive), and we lag and time-out a lot because the server can't keep up.
If i run the internal server via Singleplayer, i end up with little to no lag, and can play fine. When opening my world to LAN, my friend can not connect, timing out.
I know if i set the online-mode=true on my external server it throws the same message. So..
1. Can i somehow log the internal server and see the error he gets when logging in?
2. Can i set my internal server to run in offline mode?
We are running everything in offline as we have a weak internet connection, and internet cant work over 2 interfaces with Minecraft (eth0 and wlan0) so i either have to play over internet, with 200ping, or via LAN.
The router used is a TP-LINK WR720R with its internal security features disabled.
The first thing you need to pay attention to is the hardware your 'server' is running on. 2GB is not enough to handle what you are throwing at it. Your server is going to use up memory, then your client will use up memory. Then a little more memory will be used up to track the changes and events of the world for each player connected. Two players may not seem like a whole lot, but even Linux has processes running in the background. Being a laptop, you then have a bottle neck on the CPU and GPU. If this were a modern gaming laptop with 4+ GB RAM, I can see you getting away with it, but the hardware is just too weak even then. The router has nothing to do with this as the model you describe is sufficient to do it.
I would say what you are experiencing is right on par with the hardware you are using. Just as a curiosity, how many cores on your CPU? What graphics chipset is it using?
The interesting fact is the internal singleplayer server works fine. I use Ubuntu with the i3 window manager, and my system uses 60mb at most running at idle. I switched to i3 just for this purpose. The most memory demanding process is pulseaudio, the audio driver, and it takes 9mb of RAM.
When running the game in singleplayer with OptiFine and FastCraft i get 40+FPS on a Superflat and around 25-ish on a normal biome. 30FPS on Plains, where my house is located, around 35FPS in caves. The Server save period is set to 30 minutes in OptiFine to cope with the Lag spikes.
When the game is run, with no chunks loading, and standing still i use 1.6GB of RAM, 1.7 when moving and playing normal, which is enough to run the game fine (at the framerates i specified) having 150-200MB of RAM free.
What wrecks my game is the external server running another instance of Minecraft so my friend can play and taking more RAM, so i swap almost a gigabyte of RAM.
Earlier without Applied Energistics 2 and MineFactory Reloaded we were running the external server fine, with my game running on it, swapping 700MB, and running my game and server on the same PC. Sometimes i would time out due to server stopping responding, but that happened once, maybe twice a day.
With the two mods i lag out every half an hour. But my friend, has no lag at all, 60+FPS, breaking and placing blocks with no lag.
Laptop specs:
HP Compaq Presario CQ56, AMD V140 single core processor running at 2.3GHz, 2GB of DDR3 and a AMD Radeon Mobility HD4250.
My system, AMD-6800K 4.5 GHz, 8 GB RAM and AMD Radeon R9 290 I can play single player near 60 fps with a very sizable modpack installed. Doing what you are doing, framerate drops to 35 - 30 fps.
2 GB is not enough. That V140 is not enough to run both a server AND a client on the same machine at decent performance, let alone letting the machine tank even more with another person attempting to connect. The two other mods issue might be because on the server, it's writting to and from your disc and using your processing power and memory to do so. You're chasing ghosts. Someone else can try and figure out some tweaks that might make it work, but from my experience, I just do not see it happening.
Also to point out another issue, unless you've upgraded it, the SATA drive in the laptop is 5400 RPM, that's slower than standard 7200 RPM drives in desktops (yeah, you can find some for laptops, not many). You might try an SSD...
*Face Palm*
Offline mode and Online mode means if you're going to have your server authenticated with Mojang or not, nothing to do with your internet
The point is to not have it authenticated, i know what online-mode is professor.
Yes, its a 5400RPM drive.
I will just ditch it and play alone. And you get those framerates because you dont have OptiFine and Fastcraft i assume.
Correct. I love the buttery smoothness vanilla gives me on this system. Optifine/MCPatcher alone still gives me that high framerate, just lets me up the texture pack if I desired.
SSD drives do help with games that have lots of disk reads and writes. It also helps in systems with lower physical memory that depends on swap files/spaces.
Final analysis, enjoy vanilla, it really is not that bad and put some consideration into something a bit beef-ier to play on.