Some background information: I'm running a dedicated home server on a Core 2 Duo E6600, 4GB RAM, 2Mbit UL/ 20Mbit DL. I'm now running 1.4.5 with a total of 47 mods client-side, 31 mods server (FML) side. Everything runs quite well except for a few texture tiles are invisible for Ropes+ and Metal Chest upgraders (Texture pack issues, I think) on the client-side. FML also has problems loading some Forestry items (I think something to do with Twilight Forest mod I just added?)
I know my upload speeds are quite minimal for such a server. There's only 4-5 of us on at a given time, max. It's normally 2-3 people playing at any given time, however. There can be lag exploring new territory but other than that, not bad (this may be a result of Dynmap taking up server CPU/RAM resources?).
All that being said, I believe I understand that Xmx1024M is the minimal amount of RAM dedicated to java/minecraft server and Xms1024M is the maximum that will be used. Please correct me if I'm wrong.
My questions:
1. Is running Xmx1024M Xms1024M enough RAM for the server, considering the number of mods installed? I've been running it at Xmx1024 Xmx2048 since we started. The kicker: The server PC is also used as a client PC, and is played on at times.
2. Considering the server PC is also used to play a client on the server, can I run a batch file for both the server AND the client, to increase RAM to the client? Would this work or does one batch effect both, since its effecting java in general?
Yes you can run a batch file for both, each batch file calls up a new java virtual machine each with individually set ram, so you can have the server running 2gb and the client running 1gb (Or however you have it setup)
Thanks for that. Do you know how much RAM would be enough for such a server, as stated above? I don't want to dedicate 2GB to the server if it's not really going to use it. I only have 4GB in total.
On another note, how much RAM should I leave for XP, my AntiVirus, and basic system items that must run? Is 1GB of RAM enough if I do 1GB/2GB to server, 1GB/1GB to client?
One option you could consider is setting the initial heap size (the -Xms part) to 1GB, and setting your maximum heap size (-Xmx) at something around 3.5GB. I'm sorry I can't provide specifics to the mods you use, as I mainly administer bukkit servers, but allowing the server to use more RAM if it needs to can help. However, I have read about drawbacks to this, mostly related to garbage collection. If you have a high max heap size, Java's garbage collector doesn't need to run as often, meaning that it may not actually *need* that extra space it's using.
One option you could consider is setting the initial heap size (the -Xms part) to 1GB, and setting your maximum heap size (-Xmx) at something around 3.5GB. I'm sorry I can't provide specifics to the mods you use, as I mainly administer bukkit servers, but allowing the server to use more RAM if it needs to can help. However, I have read about drawbacks to this, mostly related to garbage collection. If you have a high max heap size, Java's garbage collector doesn't need to run as often, meaning that it may not actually *need* that extra space it's using.
Is this realistic considering only having 4GM RAM int he entire computer?
Is this realistic considering only having 4GM RAM int he entire computer?
From my experience, yes. Assuming the client you mentioned is a minecraft client, boot the Minecraft Client with -Xms512M -Xmx512M (certain launchers can help you with this), then the server with -Xms1024M -Xmx3072M.
I know my upload speeds are quite minimal for such a server. There's only 4-5 of us on at a given time, max. It's normally 2-3 people playing at any given time, however. There can be lag exploring new territory but other than that, not bad (this may be a result of Dynmap taking up server CPU/RAM resources?).
All that being said, I believe I understand that Xmx1024M is the minimal amount of RAM dedicated to java/minecraft server and Xms1024M is the maximum that will be used. Please correct me if I'm wrong.
My questions:
1. Is running Xmx1024M Xms1024M enough RAM for the server, considering the number of mods installed? I've been running it at Xmx1024 Xmx2048 since we started. The kicker: The server PC is also used as a client PC, and is played on at times.
2. Considering the server PC is also used to play a client on the server, can I run a batch file for both the server AND the client, to increase RAM to the client? Would this work or does one batch effect both, since its effecting java in general?
Someone please clarify this for me.
Thanks for that. Do you know how much RAM would be enough for such a server, as stated above? I don't want to dedicate 2GB to the server if it's not really going to use it. I only have 4GB in total.
On another note, how much RAM should I leave for XP, my AntiVirus, and basic system items that must run? Is 1GB of RAM enough if I do 1GB/2GB to server, 1GB/1GB to client?
Thanks in advance!
[MineResetLite | ChestKeeper]
Is this realistic considering only having 4GM RAM int he entire computer?
From my experience, yes. Assuming the client you mentioned is a minecraft client, boot the Minecraft Client with -Xms512M -Xmx512M (certain launchers can help you with this), then the server with -Xms1024M -Xmx3072M.
[MineResetLite | ChestKeeper]