Registruotis    Prisijungti    Forumas    Ieškoti    DUK




Kokio pc ir interneto reiketu kuriant serveri

Jeigu iškilo bėda kuriant L2j serverį rašykite ją čia.

Kokio pc ir interneto reiketu kuriant serveri

Standartinė Paulius » Vasaris 23rd, 2010, 6:25 pm

Kokiu kompiuterio duomenu reikia kuriant l2j serveri, ka patartumet?
Beje taip pat ir apie interneta kokio interneto reiktu kad pavestu normaliai zmoniu?
Random avatar
Paulius
Naujokas
Naujokas
 
Pranešimai: 2
Užsiregistravo: Vasaris 23rd, 2010, 6:16 pm
Karma:
Karma:
Increase user’s karma Decrease user’s karma

Re: Kokio pc ir interneto reiketu kuriant serveri

Standartinė bontavi » Vasaris 23rd, 2010, 6:48 pm

klysti jai turi gera kompa gali laikyt ant savo kompo.
bontavi
Naujokas
Naujokas
 
Pranešimai: 3
Užsiregistravo: Vasaris 23rd, 2010, 6:47 pm
Karma:
Karma:
Increase user’s karma Decrease user’s karma

Re: Kokio pc ir interneto reiketu kuriant serveri

Standartinė MisMoon » Vasaris 23rd, 2010, 7:09 pm

Reikia visko kuo geresnio manau . :P
MisMoon
Naujokas
Naujokas
 
Pranešimai: 2
Užsiregistravo: Vasaris 23rd, 2010, 7:08 pm
Karma:
Karma:
Increase user’s karma Decrease user’s karma

Re: Kokio pc ir interneto reiketu kuriant serveri

Standartinė SniuurksT » Vasaris 23rd, 2010, 7:21 pm

Na geram serveirui patarciau pirki vps tai jai imtum vps 3gb ram apie 300-400 on zaideju su 100mb netu
o jai laikysi ant pc tj 4 gb ram 200 zaideju ir jai netas nemazesnis nei 30mb
SniuurksT
Naujokas
Naujokas
 
Pranešimai: 6
Užsiregistravo: Vasaris 23rd, 2010, 7:20 pm
Karma:
Karma:
Increase user’s karma Decrease user’s karma

Re: Kokio pc ir interneto reiketu kuriant serveri

Standartinė Einantelisz » Vasaris 23rd, 2010, 9:38 pm

Jei turi dual core procesorių, 2-3GB RAM (čia windowsams) ir ~50Mbps internetą, tai manau kad gali normalų serverį padaryti ;) Aišku nebus jis kažkas labai jau nuostabaus, tačiau vistiek nemanau, jog reikia talpinti daug žaidėjų, jei jau namuose laikysi ir ant windows operacinės sistemos ;)
Random avatar
Einantelisz
Naujokas
Naujokas
 
Pranešimai: 2
Užsiregistravo: Vasaris 23rd, 2010, 7:28 pm
Karma:
Karma:
Increase user’s karma Decrease user’s karma

Re: Kokio pc ir interneto reiketu kuriant serveri

Standartinė GTI » Vasaris 24th, 2010, 2:09 am

wtfiii rašė:patariu ant savo pc nelaikyti, nes ilgai negyvuos. jei nori norm servo susitaupyk ant serverinės.

kaip suprast ant serverisnes laikiti serva.Nusipirkti serveri kokiam nors hostinge?
GTI
Dalyvis
Dalyvis
 
Pranešimai: 43
Užsiregistravo: Vasaris 23rd, 2010, 7:11 pm
Karma:
Karma:
Increase user’s karma Decrease user’s karma

Re: Kokio pc ir interneto reiketu kuriant serveri

Standartinė eimaz » Vasaris 24th, 2010, 2:42 am

As tai kiek pastebejau , tiai jeigu serveris be lagu ir idomi unikali sitema sugalvota itemu gavimo tai zmones eina net ir i paskutineje vietoje tope esanty serva :D
Random avatar
eimaz
Naujokas
Naujokas
 
Pranešimai: 9
Užsiregistravo: Vasaris 23rd, 2010, 10:29 pm
Karma:
Karma:
Increase user’s karma Decrease user’s karma

Re: Kokio pc ir interneto reiketu kuriant serveri

Standartinė GPum » Vasaris 25th, 2010, 6:16 pm

bontavi rašė:klysti jai turi gera kompa gali laikyt ant savo kompo.


Tai tikrai nėra įmanoma normaliam serveriui ( 100 +). 6GB of ramo , 100Mb/s internetas (jau geram serveriui ).
Atsimink: Ne piniguose laimė, o jų kiekyje...
Vartotojo avataras
GPum
Dalyvis
Dalyvis
 
Pranešimai: 50
Užsiregistravo: Vasaris 25th, 2010, 4:58 pm
Miestas: Alytus
Karma:
Karma:
Increase user’s karma Decrease user’s karma

Re: Kokio pc ir interneto reiketu kuriant serveri

Standartinė gemalas » Kovas 1st, 2010, 3:17 pm

Ce yra viskas lb rimtai ir labai graziai nupasakota.

I am writting this guide for people who use windows server 2003. This will mostly also apply to people who use other versions of windows.

1.Hardware/OS

Before doing anything, you should have a look at your server hardware. A intel pentium core 2 duo with 2 gb ram may look nice but with l2j, its not.
Although this is budget based and you will probally build up some nice server allong the way of having a private server, you will need some powerfull hardware to support 1000+.
Currently i am using this configuration:

Cpu: Quad Core Xeon 3220 - 2.40GHz (Kentsfield) - 2 x 4MB cache
MBram: 8 GB DDR2 667
HDD: 73GB SA-SCSI 15K RPM
HDD2: 73GB SA-SCSI 15K RPM
Connection: 1000mbit up/down
OS: Windows server 2003 64bit RC2

You might think that cpu power is all that matters when hosting a gameserver but in fact, your harddisk and ram are way more important.
If you want to run more then 600 players with 0 lag i am advicing you to go for 15k rpm hdds. I have two of them and without these i wouldnt be able to run 1000+.
The first harddisk is running my windows and has all my program files on it etc. The second harddisk is dedicated for my database. If you want performance you
should always do this. Will increase acces time allot and as l2j with allot of player on has many writes/reads its a must if you want lag free gameplay.
About the ram, 6 Gb should do fine have run on that for a long time.About the connection, 100mbit is more then enough.

OS, well i recommend using the 64bit version of windows server 2003. This way you can run your java and mysql in 64 bit wich speeds it up a bit.
Also, you can allocate more ram to your startup file but i will tell more about this later on.


2.Windows server 2003

So lets see, we got a awesome server machine wich is up and running with windows server 2003. I think we are ready for some configuration changes for windows.
The first thing you need to change is the resource allocating. Windows server sets it to background services by default.]
Although this might be very good for stuff like Exchange, we dont want it like this.

1.Other mouse button on my computer and select properties(new window will popup)
2.Click on the "Advanced" tab
3.You will see Performance with a button "settings...." Click on it.(new window will open)
4.Click on the "Advanced" tab
5.Now set Processor scheduling and Memory usage to "Programs".
6.Press apply and dont close the window yet cause we are also gonna change the pagefile size.

Ok now the resource allocation is correct. Now we are going to change the pagefile size. The pagefile is windows virtual memory wich is stored on the harddisk.
As the pagefile is used allot we want to increase it and we want to set it to a set value. That means setting the initial size the same as the maximum.
This is done cause this way you want have fragmentation with your page file and your hardisk doesnt have to resize it all the time wich creates extra reads and writes.
Lets continu where we left the Advanced tab open.

7.You will see Virtual Memory with a button that says "Change". Click on this.(New window will popup)
8.Now set it to custom size.
9.Windows advices you to take 1.5x your ram size as your page file. I am not following this and i am setting mine on 6114. Make sure that the initial size and maximum size are the same!
10.Once you have filled in the two valeus, press set and then apply.
11. Apply all and restart your computer.

If you want to give the pagefile optimal performance and you got an harddisk unused you can also change the location of the pagefile. This will give it a little bit more performance.


3.Mysql

Well well, we are at MySql now. Most people hate changing the config files but its really needed if you want a nice server.
Im not an expert with this but hours of reading and watching mysql workshops i came up with some stuff wich needs to be changed.
I will post parts of the Mysql config i am using so you will know what you need to change.
Although the main resource mysql wants is ram its not needed to set giant values at the ram settings.
This will only create a unwanted giant space usage in your page file. Just keep a look at the size of your database regulary and change the size of the ram setting according to it.
(example: My database is 200 mb in total, i will set my ram usage size to 512mb).

Shutdown your Mysql before changing anything!!!

Ok open your my.ini
(text between ----->blaatblaat<--- are my comments!

First setting you should check:
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB

-------->Set this to a high value, something like mine.
# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=600


-------->This can be set at 0, not used by l2j and only slows it down
# Query cache is used to cache SELECT results and later return them
# without actual executing the same query once again. Having the query
# cache enabled may result in significant speed improvements, if your
# have a lot of identical queries and rarely changing tables. See the
# "Qcache_lowmem_prunes" status variable to check if the current value
# is high enough for your load.
# Note: In case your tables change very often or if your queries are
# textually different every time, the query cache may result in a
# slowdown instead of a performance improvement.
query_cache_size=0


------>If your tables are getting big, you should locate more to this.This should be more then enough though!
# Maximum size for internal (in-memory) temporary tables. If a table
# grows larger than this value, it is automatically converted to disk
# based table This limitation is for a single table. There can be many
# of them.
tmp_table_size=256M

--------->setting this to 8mb is more then enough
# Additional memory pool that is used by InnoDB to store metadata
# information. If InnoDB requires more memory for this purpose it will
# start to allocate it from the OS. As this is fast enough on most
# recent operating systems, you normally do not need to change this
# value. SHOW INNODB STATUS will display the current amount used.
innodb_additional_mem_pool_size=8M

------>This one is tricky and i dont know wich one is the best, never had time to test it allot.
------>I do know that if you set it to "0" it will create major I/O spikes
------>I havent had any problems using option "2"
# If set to 1, InnoDB will flush (fsync) the transaction logs to the
# disk at each commit, which offers full ACID behavior. If you are
# willing to compromise this safety, and you are running small
# transactions, you may set this to 0 or 2 to reduce disk I/O to the
# logs. Value 0 means that the log is only written to the log file and
# the log file flushed to disk approximately once per second. Value 2
# means the log is written to the log file at each commit, but the log
# file is only flushed to disk approximately once per second.
innodb_flush_log_at_trx_commit=2

------->Not needed to be any higher then 16Mb, comment of mysql explains it
The size of the buffer InnoDB uses for buffering log data. As soon as
# it is full, InnoDB will have to flush it to disk. As it is flushed
# once per second anyway, it does not make sense to have it very large
# (even with long transactions).
innodb_log_buffer_size=16M

--------> Set this to the ammount of ram you have free for your database. At mine, 1024 is enough.
# InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
# row data. The bigger you set this the less disk I/O is needed to
# access data in tables. On a dedicated database server you may set this
# parameter up to 80% of the machine physical memory size. Do not set it
# too large, though, because competition of the physical memory may
# cause paging in the operating system. Note that on 32bit systems you
# might


Tikiuos kam nors pravers :ugeek:
gemalas
Naujokas
Naujokas
 
Pranešimai: 14
Užsiregistravo: Kovas 1st, 2010, 3:02 pm
Karma:
Karma:
Increase user’s karma Decrease user’s karma

Re: Kokio pc ir interneto reiketu kuriant serveri

Standartinė Vitalka » Kovas 1st, 2010, 4:23 pm

eng kalba... patys kazka parasykit o ne copy paste.
Vartotojo avataras
Vitalka
Dalyvis
Dalyvis
 
Pranešimai: 54
Užsiregistravo: Vasaris 26th, 2010, 2:34 pm
Miestas: Mazeikiai
Karma:
Karma:
Increase user’s karma Decrease user’s karma

Kitas

Grįžti į L2j serverio kūrimo klausimai

Dabar prisijungę

Vartotojai naršantys šį forumą: Registruotų vartotojų nėra ir 0 svečių