Jump to content
  • 0

server's total available ram..


Question

Posted

i have this machine : Xeon E5504 - 12gb DDR3 Ram - 140gb 10k SAS x2(raid 0 = 280 gb HDD)

 

i want to know if my l2j server can run on all ram(12gb) or atleast to 10gb ram...

i have to do some edits?and if yes where?

or if i dont...if your windows allow you more than 12gb ram (to my situtation i have Windows Server Enterprise 32bit and gives up to 64gb ram)im ok??my server will take all the available ram if ll needs to??

 

and last..what the reason for -xmx -xms -xmn on StartgameServer.bat (edit)??only for carbage collector-lagg??or there is something to do with the max amount of ram my server can run on...

 

ty for your time..i m w8 for your help!!

Recommended Posts

  • 0
Posted

ofc..but i dont asked that..i asked if he needs to run on 10gb ram he will?..for example..if he ll needs to uses 5gb ram he will??or i got to do any edit to gameserver.bat or in my windows or i dont even know...(or to install something addon windows)

 

and like i asked ...

 

and last..what the reason for -xmx -xms -xmn on StartgameServer.bat (edit)??only for carbage collector-lagg??or there is something to do with the max amount of ram my server can run on...

 

ty for your help..extremedwarf and i already learn a lot from your guides-comments..but plz try to help me little more here...

 

im still w8 for your help guys...i want to fully understand this...ty

 

  • 0
Posted

with windows 32x you cant set more then 1 GB ram for usage... install 64x and use your ram :P

it's 3.25.

  • 0
Posted

kuba you have a way to use 10gb ram for l2 on Windows Server Enterprise x32???

 

if yes plz can you tell it to me too....(on microsoft's page i find that my version is up to 64gb ram..but i cant put more than -1580xmx -1580xms. . . . ..(i have 12gb ramm). . ..

  • 0
Posted

xmx is the maximum heap size in the JVM.

xms is the initial heap size in the JVM.

 

Ill give you an example to understand how to use those values. Lets say you give 1 GB maximum heap size. When the server starts, it doesnt use all that memory, it doesnt need to. After many players login, or server is up for a long time ( memory leaks but dont pay attention to that ) memory starts getting filled up. If memory gets filled up to 1 GB / 1 GB then when JVM tries to allocate a new object it doesnt find any space to do that. So the garbage collector , starts "scanning" whole heap which adds load to the server making it not able to respond easily and in reasonable time. He does that so as he can collect garbages to free some space.

 

Usually in server applications you use xmx = xms , the same value. And that value is limmited by your adressing model or by your rams maximum. But, you shouldnt use ALL your ram in the JVM, cause free ram is needed for "other" things. Based on what you say:

 

but i cant put more than -1580xmx -1580xms.

 

How did you figure that out ?

 

  • 0
Posted

well to be honest if you dont have that much knowledge your server will never ever going to use that much memory hence you dont need to worry about this 1,5gb ram is enough for 100-120 player(ofc depends on the pack too but in general)

  • 0
Posted

i got 12gb ram ..i m thinking to put about -xmx8600 -xms8600 ... i tried to put -xmx3200 -xms 3200 ..

 

and my bat dont starts... now im trying to put x64 windows... and then i ll try again...

 

8-9gb for server and 3 gb for the rest machine isnt nice idea to your opinion..?

 

ty

  • 0
Posted

i got 12gb ram ..i m thinking to put about -xmx8600 -xms8600 ... i tried to put -xmx3200 -xms 3200 ..

 

and my bat dont starts... now im trying to put x64 windows... and then i ll try again...

 

8-9gb for server and 3 gb for the rest machine isnt nice idea to your opinion..?

 

ty

 

you really dont have absolutely 0 knowledge so to speak...

 

1st the maximum heap size JVM can initialize under 32bit is 1,5gb hence to setup more you need 64bit...

2nd you dont need 8-9gb and 3gb for the rest you never going to use that much memory(to comparison 2000player on an l2j server = pc with 16gb memory with usual optimalizations)

3rd dont use the same amount of maximum heap size and initial heap size use google to find out what value is for what...

  • 0
Posted
you really dont have absolutely 0 knowledge so to speak...

 

He is asking, he didnt suggested anything .... chill out.

 

1st the maximum heap size JVM can initialize under 32bit is 1,5gb hence to setup more you need 64bit...

 

The maximum heap size JVM can initialize under 32 bit is 4 GB ( do the maths ) , just some OS limmit it to 3 GB, some others to even less ( 1GB etc ).

 

2nd you dont need 8-9gb and 3gb for the rest you never going to use that much memory(to comparison 2000player on an l2j server = pc with 16gb memory with usual optimalizations)

 

Thats true, you wont need that much memory. You can run fine with 4GB with 800 players ( tested ).

 

3rd dont use the same amount of maximum heap size and initial heap size use google to find out what value is for what...

 

Wrong. If you allocate a small initial heap size ( xms ) then the JVM will reallocate ( increase/decrease ) the heap size each time its filled. For example, when it reaches initial xms ( 1GB ) it will reallocate more ( if xmx > xms ) which will add additional CPU overhead. For server applications, the best practice is to use xms = xmx. And always start with a quite sufficient xms ( eg 4 GB ) so as you wont need memory reallocation.

  • 0
Posted

He is asking, he didnt suggested anything .... chill out.

 

The maximum heap size JVM can initialize under 32 bit is 4 GB ( do the maths ) , just some OS limmit it to 3 GB, some others to even less ( 1GB etc ).

 

Thats true, you wont need that much memory. You can run fine with 4GB with 800 players ( tested ).

 

Wrong. If you allocate a small initial heap size ( xms ) then the JVM will reallocate ( increase/decrease ) the heap size each time its filled. For example, when it reaches initial xms ( 1GB ) it will reallocate more ( if xmx > xms ) which will add additional CPU overhead. For server applications, the best practice is to use xms = xmx. And always start with a quite sufficient xms ( eg 4 GB ) so as you wont need memory reallocation.

 

asking is one thing using google is another thing...and no its not wrong since again...the allocated memory always depends on how big server you have and since 100-120player server run fine with 512mb allocation on boot and only 1gb maximum heap size than whats the point of 1st a pc like and 2nd such a big heap...

 

+ still 32bit is stupid under a server pc(same stupidity as windows under server pc)

 

about the heap size(depends on OS since i test at home on win xp 32bit for me its 1,5gb just like for him)and on server pc who cares i use 64bit anyway...

 

also for the allocation i would prefere a bigger mysql heap size and if the server pc run the website too than watch for the apache server too since mysql and apache are the vulnerable parts...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • First, don't really follow the "main voice", moreover if you consider it an hobby. Simply do what you want, you got only one life so use it as you want. If you make it an hobby, it's exactly like piano, or velo - only practice makes you better.   Secondly, how do you learn things ? It's actually a really important question, since some can simply be scholar, read books (theory) then practice ; and some simply can't read books. I'm the second type, I hated school, I find it boring - my knowledge in Java comes from try-and-fail. You improve your coding style every year or so, I can myself rewrite my own code (which I already considered top-notched) after a while. You always learn something new - even if Java barely evolves. L2J is a fun way to learn programming, it's a giant sandbox where you can edit anything, and I believe it should be taken as it.   My own way of learning was as follow : Add existing customs, no matter what they are : the point is to know main classes used by L2J / customs. L2J is barely Java knowledge ; the true knowledge is to know WHAT to search in WHICH location (what I call, organization). You have to understand than EVERYTHING you think already exists, in a form on another, in the source code. A custom is only the association of the different mechanisms you found "here and there", glued together in a proper goal. Once you know main classes to edit, and the customs you added are compiling fine, the main point is to know WHAT exactly you DID. Try to understand WHY and WHERE you actually copied the code. Third point would be to MANIPULATE the customs you added in order to fit your wish. First edit little values, then logic conditions ; eventually add a new Config, or a new functionality to the custom. Fourth point would be to begin to craft your own ideas. Once again, EVERYTHING already exists, in a form or another. You want a cycled event ? You got Seven Signs main task as exemple. Npc ? Search any type of Npc and figure out what it does. Fifth point would be to understand Java - mostly containers (WHAT and WHERE to use them), variables types and main Java mechanisms (inheritance, static modifier, etc). You should also begin to cut your code into maintainable classes or methods. Java can actually run without optimization, but bigger your ideas, more optimized and well-thought it should be. It's direct saved time in the future, and you would thank yourself doing so. Main tips : ALWAYS use any type of versioning system - GIT or SVN. It allows to save your work, step by step and eventually revert back anytime you want if you terribly messed up. L2J is 80% organization knowledge, and 20% Java knowledge. Basically, if you know WHAT and WHERE to search, if you aren't dumb, it's easy to replicate and re-use things. Cherry on top is to use a already good coded pack to avoid copy-paste crap and get bad habits. Avoid any type of russian or brazilian packs, for exemple - their best ability is to leak someone's else code. Obviously you need some default sense of logic, but Java and programming in general help you to improve it.   Finally, most of your questions could be solved joining related Discord (at least for aCis, I can't speak for others) - from the moment your question was correctly asked (and you seemed to search for the answer). My community (and myself) welcomes newbies, but got some issues with noobies.   The simpliest is to try, fail and repeat until you succeed - it sounds stupid, but that's basically how life works.   PS : about Java ressources, before ChatGPT, it was mostly about stackoverflow website, and site like Baeldung's one. With ChatGPT and alike, you generally double-cross AI output to avoid fucked up answers. Also, care about AI, they are often hallucinating really hard, even today. They can give you complete wrong answer, you tell them they are wrong, and they say "indeed, I suck, sorry - here's a new fucked up answer". You shouldn't 100% rely over AI answer, even if that can give sometimes legit answers, full code or just skeletons of ideas.   PPS : I don't think there are reliable ressources regarding L2J itself, also most of the proposed code decays pretty fast if the source code is actually maintained (at least for aCis). Still, old coded customs for old aCis sources are actually a good beginner challenge to apply on latest source.
    • Add prices please.
    • WTS: - AQ - Baium - Zaken  - Frintezza - Vesper Fighter Focus Fire Element   pm for detalis
    • We have the best price! L2Reborn.org Signature x1 Franz NEW!! 1KK = $20 HURRY TO BUY AT THE TOP PRICE discord - adver745645
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock