Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo.
Caso seja registrado, efetue login.
Esqueceu sua senha? Clique aqui
Recomendamos o uso do Mozilla Firefox para uma melhor visualização.
CPU: Dual Core - 2.40GHz - 2 x 4MB cache
Memória RAM: 8 GB DDR2 667
HD 1: 80GB 15.000 RPM SA-SCSI
HD 2: 80GB 15.000 RPM SA-SCSI
Conexão: 1000mbit up/down
Sistema Operacional: Windows 2003 serve edition x64
Um tipo de computador deste suportaria muita coisa para um servidor de Lineage II em java, servidores dessse tipo eles pedem mais RAM e HD de alta velocidade, um HD de 7000 RPM ele consegue processar ate 400 jogadores online ao mesmo tempo sem lag, mais com 2 HD's de 15000 RPM;
1 HD para processar o windows e todos os outros arquivos, e o 2º HD dedicado para processar a base de dados o MySQL, assim você terá um resultado muito bom, pois o MySQL estará trabalhando com o 1 HD de 15000 RPM livremente para ele, somente para ele, ou seja rapidez e velocidade no seu trabalho.
Windows 64:
A necessidade de usar o windows 64 é para poder executar o Java x64 e MySQL x64, os programas x64 podem operar completamente 100% do que o seu hardware tem, ao contrário do x32, com Java x64 é capaz de você liberar até 12GB de RAM para ele livremente, claro que seu hardware deverá ter isso, no nosso exemplo estamos com um computador de 8GB de ram, então sendo liberado 6GB para o java estaría ótimo!
Configuração do windows!
Para que o windows trabalhe pensando mais no que está executando, é necessário realizar algumas alterações.
1º Clique com botão direito do mouse em ( Meu Computador ) e aperte ( Propriedades ).
2º Na nova janela que abrir clique na aba ( Avançado ).
3º Em "DESEMPENHO" aperte ( Configurações ).
4º Na nova janela aperte em ( Avançado ).
5º Em "USO DE MEMÓRIA" marque a opção "PROGRAMAS" e aperta ( Aplicar ) depois OK
Pronto, agora seu windows estará concentrado no que fazer.
Mais ainda precisamos organizar a memoria virtual que será liberada para o disco rígido.
1º Na mesma janela "Opções de desempenho" em "Memoria Virtual" aperte em ( ALTERAR ), uma nova janela irá se abrir.
2º E compare que o tamanho inicial e o mesmo que o tamanho máximo, atualize os dois com 6114.
3º Aperte ( OK ).
Deste modo temos o windows preparado para um super servidor!
Agora precisamos organizar o MySQL.
Vou postar partes do Mysql config que ficaria ideal para trabalhar de acordo com o computador citado no exemplo acima.
Sabemos o principal recurso do mysql é adquirir RAM.
Em seu computador onde o MySQL está instalado:
Ex: C:\MySQL\
abra o arquivo chamado my.ini
e configure as partes como estão abaixo:
Citação:
First setting you should check:
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
Citação:
-------->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
Citação:
-------->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
Citação:
------>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
Citação:
--------->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
Citação:
------>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
Citação:
------->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
Citação:
--------> 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 be limited to 2-3.5G of user level memory per process, so do not
# set it too high.
innodb_buffer_pool_size=1024M
Citação:
----------> I have always set this to 50% of my innodb_buffer_pool_size.
----------> Remember if you change this you need to delete your log files in order to start mysql again.
----------> They are located here: MySQL Server 5.0\data
----------> you should delete ib_logile0 and ib_logfile1 if you change this.
# Size of each log file in a log group. You should set the combined size
# of log files to about 25%-100% of your buffer pool size to avoid
# unneeded buffer pool flush activity on log file overwrite. However,
# note that a larger logfile size will increase the time needed for the
# recovery process.
innodb_log_file_size=512M
Citação:
--------->The thread concurrency depends on your hardware.
--------->you should play around with it a bit but if you cpu is a powerfull one you can easily set this to 60
# Number of threads allowed inside the InnoDB kernel. The optimal value
# depends highly on the application, hardware as well as the OS
# scheduler properties. A too high value may lead to thread thrashing.
innodb_thread_concurrency=60
-----> Setting so mysql uses your memory instead of the pagefile
memlock
-----> Creates a file for every table. this creates a minor performance boost
-----> Remember, if you want this setting to work you have to add it to your config and then re-import your database again.
-----> Only that way it will create a file per table.
innodb_file_per_table
Pronto, agora tu tens um MySQL trabalhando junto com o teu HD, isso ficará excelente para processar o tanto de coisas que seus players fazem no servidor!
Bom agora vamos configurar o servidor L2J
Abra o seu GameServer\Config > Bloco de notas options.properties
Ex:
C:\Seu Serve\GameServer\Config
Abra o arquivo options.properties
e edite como as linhas abaixo:
Citação:
# ================================================== ===============
# Threads configuration - Take care changing this
# ================================================== ===============
Os valores foram definidos 5x isso ótimo para o servidor poder ser executado.
Agora o other.properties:
Citação:
# ================================================== ===============
# Logging features
# ================================================== ===============
# Logging ChatWindow
LogChat = False
# Logging Item handling NOTE: This can be very space consuming if enabled for all items.
LogItems = False
# Log GM actions
GMAudit = True
-------> Having them not running around can improve performance a bit
# Maximum range mobs can randomly go from spawn point
MaxDriftRange = 0
-------> Definitly set this to false!
# setting false can improve server performance on high rate servers
PreciseDropCalculation = False
-------> Dont know precisly wich is the best one but 1 has always worked great for me.
# This is setting of experimental Client <--> Server Player coordinates synchronization,
# 0 - no synchronization at all
# 1 - parcial synchronization Client --> Server only * using this option it is difficult for players to bypass obstacles
# 2 - parcial synchronization Server --> Client only
# 3 - full synchronization Client <--> Server
# -1 - Old system: will synchronize Z only
CoordSynchronize = 1
Pronto servidor configurado para um excelente computador.
Partimos para o Console para abrir com sua potência máxima!
na pasta do GameServer
C:\(L2J)\GameServer
Tera o bat >> startGameServer.bat
clique nele com botão direito do mouse e aperte editar!
Edite as linhas:
Citação:
REM -------------------------------------
REM Default parameters for a basic server.
java -Dfile.encoding=UTF-8 -Xmx1024m net.sf.l2j.gameserver.GameServer
REM
REM For debug purpose (for devs), use this :
REM java -Dfile.encoding=UTF-8 -Xmx1536m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,ad dress=7456 net.sf.l2j.gameserver.GameServer
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Dfile.encoding=UTF-8 -Xmx1536m -Xms4096m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM -------------------------------------
Pronto, agora seu servidor está preparado para suportar mais de 1000 Players online.
Softwares necessários:
Citação:
Windows 2003 server edition x64
Java SE Development Kit 6 Update 5 x64
MySQL 5.1 x64
CPU: Dual Core - 2.40GHz - 2 x 4MB cache
Memória RAM: 8 GB DDR2 667
HD 1: 80GB 15.000 RPM SA-SCSI
HD 2: 80GB 15.000 RPM SA-SCSI
Conexão: 1000mbit up/down
Sistema Operacional: Windows 2003 serve edition x64
Um tipo de computador deste suportaria muita coisa para um servidor de Lineage II em java, servidores dessse tipo eles pedem mais RAM e HD de alta velocidade, um HD de 7000 RPM ele consegue processar ate 400 jogadores online ao mesmo tempo sem lag, mais com 2 HD's de 15000 RPM;
1 HD para processar o windows e todos os outros arquivos, e o 2º HD dedicado para processar a base de dados o MySQL, assim você terá um resultado muito bom, pois o MySQL estará trabalhando com o 1 HD de 15000 RPM livremente para ele, somente para ele, ou seja rapidez e velocidade no seu trabalho.
Windows 64:
A necessidade de usar o windows 64 é para poder executar o Java x64 e MySQL x64, os programas x64 podem operar completamente 100% do que o seu hardware tem, ao contrário do x32, com Java x64 é capaz de você liberar até 12GB de RAM para ele livremente, claro que seu hardware deverá ter isso, no nosso exemplo estamos com um computador de 8GB de ram, então sendo liberado 6GB para o java estaría ótimo!
Configuração do windows!
Para que o windows trabalhe pensando mais no que está executando, é necessário realizar algumas alterações.
1º Clique com botão direito do mouse em ( Meu Computador ) e aperte ( Propriedades ).
2º Na nova janela que abrir clique na aba ( Avançado ).
3º Em "DESEMPENHO" aperte ( Configurações ).
4º Na nova janela aperte em ( Avançado ).
5º Em "USO DE MEMÓRIA" marque a opção "PROGRAMAS" e aperta ( Aplicar ) depois OK
Pronto, agora seu windows estará concentrado no que fazer.
Mais ainda precisamos organizar a memoria virtual que será liberada para o disco rígido.
1º Na mesma janela "Opções de desempenho" em "Memoria Virtual" aperte em ( ALTERAR ), uma nova janela irá se abrir.
2º E compare que o tamanho inicial e o mesmo que o tamanho máximo, atualize os dois com 6114.
3º Aperte ( OK ).
Deste modo temos o windows preparado para um super servidor!
Agora precisamos organizar o MySQL.
Vou postar partes do Mysql config que ficaria ideal para trabalhar de acordo com o computador citado no exemplo acima.
Sabemos o principal recurso do mysql é adquirir RAM.
Em seu computador onde o MySQL está instalado:
Ex: C:\MySQL\
abra o arquivo chamado my.ini
e configure as partes como estão abaixo:
Citação:
First setting you should check:
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
Citação:
-------->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
Citação:
-------->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
Citação:
------>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
Citação:
--------->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
Citação:
------>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
Citação:
------->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
Citação:
--------> 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 be limited to 2-3.5G of user level memory per process, so do not
# set it too high.
innodb_buffer_pool_size=1024M
Citação:
----------> I have always set this to 50% of my innodb_buffer_pool_size.
----------> Remember if you change this you need to delete your log files in order to start mysql again.
----------> They are located here: MySQL Server 5.0\data
----------> you should delete ib_logile0 and ib_logfile1 if you change this.
# Size of each log file in a log group. You should set the combined size
# of log files to about 25%-100% of your buffer pool size to avoid
# unneeded buffer pool flush activity on log file overwrite. However,
# note that a larger logfile size will increase the time needed for the
# recovery process.
innodb_log_file_size=512M
Citação:
--------->The thread concurrency depends on your hardware.
--------->you should play around with it a bit but if you cpu is a powerfull one you can easily set this to 60
# Number of threads allowed inside the InnoDB kernel. The optimal value
# depends highly on the application, hardware as well as the OS
# scheduler properties. A too high value may lead to thread thrashing.
innodb_thread_concurrency=60
-----> Setting so mysql uses your memory instead of the pagefile
memlock
-----> Creates a file for every table. this creates a minor performance boost
-----> Remember, if you want this setting to work you have to add it to your config and then re-import your database again.
-----> Only that way it will create a file per table.
innodb_file_per_table
Pronto, agora tu tens um MySQL trabalhando junto com o teu HD, isso ficará excelente para processar o tanto de coisas que seus players fazem no servidor!
Bom agora vamos configurar o servidor L2J
Abra o seu GameServer\Config > Bloco de notas options.properties
Ex:
C:\Seu Serve\GameServer\Config
Abra o arquivo options.properties
e edite como as linhas abaixo:
Citação:
# ================================================== ===============
# Threads configuration - Take care changing this
# ================================================== ===============
Os valores foram definidos 5x isso ótimo para o servidor poder ser executado.
Agora o other.properties:
Citação:
# ================================================== ===============
# Logging features
# ================================================== ===============
# Logging ChatWindow
LogChat = False
# Logging Item handling NOTE: This can be very space consuming if enabled for all items.
LogItems = False
# Log GM actions
GMAudit = True
-------> Having them not running around can improve performance a bit
# Maximum range mobs can randomly go from spawn point
MaxDriftRange = 0
-------> Definitly set this to false!
# setting false can improve server performance on high rate servers
PreciseDropCalculation = False
-------> Dont know precisly wich is the best one but 1 has always worked great for me.
# This is setting of experimental Client <--> Server Player coordinates synchronization,
# 0 - no synchronization at all
# 1 - parcial synchronization Client --> Server only * using this option it is difficult for players to bypass obstacles
# 2 - parcial synchronization Server --> Client only
# 3 - full synchronization Client <--> Server
# -1 - Old system: will synchronize Z only
CoordSynchronize = 1
Pronto servidor configurado para um excelente computador.
Partimos para o Console para abrir com sua potência máxima!
na pasta do GameServer
C:\(L2J)\GameServer
Tera o bat >> startGameServer.bat
clique nele com botão direito do mouse e aperte editar!
Edite as linhas:
Citação:
REM -------------------------------------
REM Default parameters for a basic server.
java -Dfile.encoding=UTF-8 -Xmx1024m net.sf.l2j.gameserver.GameServer
REM
REM For debug purpose (for devs), use this :
REM java -Dfile.encoding=UTF-8 -Xmx1536m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,ad dress=7456 net.sf.l2j.gameserver.GameServer
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Dfile.encoding=UTF-8 -Xmx1536m -Xms4096m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM -------------------------------------
Pronto, agora seu servidor está preparado para suportar mais de 1000 Players online.
Softwares necessários:
Citação:
Windows 2003 server edition x64
Java SE Development Kit 6 Update 5 x64
MySQL 5.1 x64
CPU: Dual Core - 2.40GHz - 2 x 4MB cache
Memória RAM: 8 GB DDR2 667
HD 1: 80GB 15.000 RPM SA-SCSI
HD 2: 80GB 15.000 RPM SA-SCSI
Conexão: 1000mbit up/down
Sistema Operacional: Windows 2003 serve edition x64
Um tipo de computador deste suportaria muita coisa para um servidor de Lineage II em java, servidores dessse tipo eles pedem mais RAM e HD de alta velocidade, um HD de 7000 RPM ele consegue processar ate 400 jogadores online ao mesmo tempo sem lag, mais com 2 HD's de 15000 RPM;
1 HD para processar o windows e todos os outros arquivos, e o 2º HD dedicado para processar a base de dados o MySQL, assim você terá um resultado muito bom, pois o MySQL estará trabalhando com o 1 HD de 15000 RPM livremente para ele, somente para ele, ou seja rapidez e velocidade no seu trabalho.
Windows 64:
A necessidade de usar o windows 64 é para poder executar o Java x64 e MySQL x64, os programas x64 podem operar completamente 100% do que o seu hardware tem, ao contrário do x32, com Java x64 é capaz de você liberar até 12GB de RAM para ele livremente, claro que seu hardware deverá ter isso, no nosso exemplo estamos com um computador de 8GB de ram, então sendo liberado 6GB para o java estaría ótimo!
Configuração do windows!
Para que o windows trabalhe pensando mais no que está executando, é necessário realizar algumas alterações.
1º Clique com botão direito do mouse em ( Meu Computador ) e aperte ( Propriedades ).
2º Na nova janela que abrir clique na aba ( Avançado ).
3º Em "DESEMPENHO" aperte ( Configurações ).
4º Na nova janela aperte em ( Avançado ).
5º Em "USO DE MEMÓRIA" marque a opção "PROGRAMAS" e aperta ( Aplicar ) depois OK
Pronto, agora seu windows estará concentrado no que fazer.
Mais ainda precisamos organizar a memoria virtual que será liberada para o disco rígido.
1º Na mesma janela "Opções de desempenho" em "Memoria Virtual" aperte em ( ALTERAR ), uma nova janela irá se abrir.
2º E compare que o tamanho inicial e o mesmo que o tamanho máximo, atualize os dois com 6114.
3º Aperte ( OK ).
Deste modo temos o windows preparado para um super servidor!
Agora precisamos organizar o MySQL.
Vou postar partes do Mysql config que ficaria ideal para trabalhar de acordo com o computador citado no exemplo acima.
Sabemos o principal recurso do mysql é adquirir RAM.
Em seu computador onde o MySQL está instalado:
Ex: C:\MySQL\
abra o arquivo chamado my.ini
e configure as partes como estão abaixo:
Citação:
First setting you should check:
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
Citação:
-------->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
Citação:
-------->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
Citação:
------>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
Citação:
--------->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
Citação:
------>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
Citação:
------->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
Citação:
--------> 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 be limited to 2-3.5G of user level memory per process, so do not
# set it too high.
innodb_buffer_pool_size=1024M
Citação:
----------> I have always set this to 50% of my innodb_buffer_pool_size.
----------> Remember if you change this you need to delete your log files in order to start mysql again.
----------> They are located here: MySQL Server 5.0\data
----------> you should delete ib_logile0 and ib_logfile1 if you change this.
# Size of each log file in a log group. You should set the combined size
# of log files to about 25%-100% of your buffer pool size to avoid
# unneeded buffer pool flush activity on log file overwrite. However,
# note that a larger logfile size will increase the time needed for the
# recovery process.
innodb_log_file_size=512M
Citação:
--------->The thread concurrency depends on your hardware.
--------->you should play around with it a bit but if you cpu is a powerfull one you can easily set this to 60
# Number of threads allowed inside the InnoDB kernel. The optimal value
# depends highly on the application, hardware as well as the OS
# scheduler properties. A too high value may lead to thread thrashing.
innodb_thread_concurrency=60
-----> Setting so mysql uses your memory instead of the pagefile
memlock
-----> Creates a file for every table. this creates a minor performance boost
-----> Remember, if you want this setting to work you have to add it to your config and then re-import your database again.
-----> Only that way it will create a file per table.
innodb_file_per_table
Pronto, agora tu tens um MySQL trabalhando junto com o teu HD, isso ficará excelente para processar o tanto de coisas que seus players fazem no servidor!
Bom agora vamos configurar o servidor L2J
Abra o seu GameServer\Config > Bloco de notas options.properties
Ex:
C:\Seu Serve\GameServer\Config
Abra o arquivo options.properties
e edite como as linhas abaixo:
Citação:
# ================================================== ===============
# Threads configuration - Take care changing this
# ================================================== ===============
Os valores foram definidos 5x isso ótimo para o servidor poder ser executado.
Agora o other.properties:
Citação:
# ================================================== ===============
# Logging features
# ================================================== ===============
# Logging ChatWindow
LogChat = False
# Logging Item handling NOTE: This can be very space consuming if enabled for all items.
LogItems = False
# Log GM actions
GMAudit = True
-------> Having them not running around can improve performance a bit
# Maximum range mobs can randomly go from spawn point
MaxDriftRange = 0
-------> Definitly set this to false!
# setting false can improve server performance on high rate servers
PreciseDropCalculation = False
-------> Dont know precisly wich is the best one but 1 has always worked great for me.
# This is setting of experimental Client <--> Server Player coordinates synchronization,
# 0 - no synchronization at all
# 1 - parcial synchronization Client --> Server only * using this option it is difficult for players to bypass obstacles
# 2 - parcial synchronization Server --> Client only
# 3 - full synchronization Client <--> Server
# -1 - Old system: will synchronize Z only
CoordSynchronize = 1
Pronto servidor configurado para um excelente computador.
Partimos para o Console para abrir com sua potência máxima!
na pasta do GameServer
C:\(L2J)\GameServer
Tera o bat >> startGameServer.bat
clique nele com botão direito do mouse e aperte editar!
Edite as linhas:
Citação:
REM -------------------------------------
REM Default parameters for a basic server.
java -Dfile.encoding=UTF-8 -Xmx1024m net.sf.l2j.gameserver.GameServer
REM
REM For debug purpose (for devs), use this :
REM java -Dfile.encoding=UTF-8 -Xmx1536m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,ad dress=7456 net.sf.l2j.gameserver.GameServer
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Dfile.encoding=UTF-8 -Xmx1536m -Xms4096m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM -------------------------------------
Pronto, agora seu servidor está preparado para suportar mais de 1000 Players online.
Softwares necessários:
Citação:
Windows 2003 server edition x64
Java SE Development Kit 6 Update 5 x64
MySQL 5.1 x64
CPU: Dual Core - 2.40GHz - 2 x 4MB cache
Memória RAM: 8 GB DDR2 667
HD 1: 80GB 15.000 RPM SA-SCSI
HD 2: 80GB 15.000 RPM SA-SCSI
Conexão: 1000mbit up/down
Sistema Operacional: Windows 2003 serve edition x64
Um tipo de computador deste suportaria muita coisa para um servidor de Lineage II em java, servidores dessse tipo eles pedem mais RAM e HD de alta velocidade, um HD de 7000 RPM ele consegue processar ate 400 jogadores online ao mesmo tempo sem lag, mais com 2 HD's de 15000 RPM;
1 HD para processar o windows e todos os outros arquivos, e o 2º HD dedicado para processar a base de dados o MySQL, assim você terá um resultado muito bom, pois o MySQL estará trabalhando com o 1 HD de 15000 RPM livremente para ele, somente para ele, ou seja rapidez e velocidade no seu trabalho.
Windows 64:
A necessidade de usar o windows 64 é para poder executar o Java x64 e MySQL x64, os programas x64 podem operar completamente 100% do que o seu hardware tem, ao contrário do x32, com Java x64 é capaz de você liberar até 12GB de RAM para ele livremente, claro que seu hardware deverá ter isso, no nosso exemplo estamos com um computador de 8GB de ram, então sendo liberado 6GB para o java estaría ótimo!
Configuração do windows!
Para que o windows trabalhe pensando mais no que está executando, é necessário realizar algumas alterações.
1º Clique com botão direito do mouse em ( Meu Computador ) e aperte ( Propriedades ).
2º Na nova janela que abrir clique na aba ( Avançado ).
3º Em "DESEMPENHO" aperte ( Configurações ).
4º Na nova janela aperte em ( Avançado ).
5º Em "USO DE MEMÓRIA" marque a opção "PROGRAMAS" e aperta ( Aplicar ) depois OK
Pronto, agora seu windows estará concentrado no que fazer.
Mais ainda precisamos organizar a memoria virtual que será liberada para o disco rígido.
1º Na mesma janela "Opções de desempenho" em "Memoria Virtual" aperte em ( ALTERAR ), uma nova janela irá se abrir.
2º E compare que o tamanho inicial e o mesmo que o tamanho máximo, atualize os dois com 6114.
3º Aperte ( OK ).
Deste modo temos o windows preparado para um super servidor!
Agora precisamos organizar o MySQL.
Vou postar partes do Mysql config que ficaria ideal para trabalhar de acordo com o computador citado no exemplo acima.
Sabemos o principal recurso do mysql é adquirir RAM.
Em seu computador onde o MySQL está instalado:
Ex: C:\MySQL\
abra o arquivo chamado my.ini
e configure as partes como estão abaixo:
Citação:
First setting you should check:
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
Citação:
-------->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
Citação:
-------->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
Citação:
------>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
Citação:
--------->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
Citação:
------>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
Citação:
------->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
Citação:
--------> 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 be limited to 2-3.5G of user level memory per process, so do not
# set it too high.
innodb_buffer_pool_size=1024M
Citação:
----------> I have always set this to 50% of my innodb_buffer_pool_size.
----------> Remember if you change this you need to delete your log files in order to start mysql again.
----------> They are located here: MySQL Server 5.0\data
----------> you should delete ib_logile0 and ib_logfile1 if you change this.
# Size of each log file in a log group. You should set the combined size
# of log files to about 25%-100% of your buffer pool size to avoid
# unneeded buffer pool flush activity on log file overwrite. However,
# note that a larger logfile size will increase the time needed for the
# recovery process.
innodb_log_file_size=512M
Citação:
--------->The thread concurrency depends on your hardware.
--------->you should play around with it a bit but if you cpu is a powerfull one you can easily set this to 60
# Number of threads allowed inside the InnoDB kernel. The optimal value
# depends highly on the application, hardware as well as the OS
# scheduler properties. A too high value may lead to thread thrashing.
innodb_thread_concurrency=60
-----> Setting so mysql uses your memory instead of the pagefile
memlock
-----> Creates a file for every table. this creates a minor performance boost
-----> Remember, if you want this setting to work you have to add it to your config and then re-import your database again.
-----> Only that way it will create a file per table.
innodb_file_per_table
Pronto, agora tu tens um MySQL trabalhando junto com o teu HD, isso ficará excelente para processar o tanto de coisas que seus players fazem no servidor!
Bom agora vamos configurar o servidor L2J
Abra o seu GameServer\Config > Bloco de notas options.properties
Ex:
C:\Seu Serve\GameServer\Config
Abra o arquivo options.properties
e edite como as linhas abaixo:
Citação:
# ================================================== ===============
# Threads configuration - Take care changing this
# ================================================== ===============
Os valores foram definidos 5x isso ótimo para o servidor poder ser executado.
Agora o other.properties:
Citação:
# ================================================== ===============
# Logging features
# ================================================== ===============
# Logging ChatWindow
LogChat = False
# Logging Item handling NOTE: This can be very space consuming if enabled for all items.
LogItems = False
# Log GM actions
GMAudit = True
-------> Having them not running around can improve performance a bit
# Maximum range mobs can randomly go from spawn point
MaxDriftRange = 0
-------> Definitly set this to false!
# setting false can improve server performance on high rate servers
PreciseDropCalculation = False
-------> Dont know precisly wich is the best one but 1 has always worked great for me.
# This is setting of experimental Client <--> Server Player coordinates synchronization,
# 0 - no synchronization at all
# 1 - parcial synchronization Client --> Server only * using this option it is difficult for players to bypass obstacles
# 2 - parcial synchronization Server --> Client only
# 3 - full synchronization Client <--> Server
# -1 - Old system: will synchronize Z only
CoordSynchronize = 1
Pronto servidor configurado para um excelente computador.
Partimos para o Console para abrir com sua potência máxima!
na pasta do GameServer
C:\(L2J)\GameServer
Tera o bat >> startGameServer.bat
clique nele com botão direito do mouse e aperte editar!
Edite as linhas:
Citação:
REM -------------------------------------
REM Default parameters for a basic server.
java -Dfile.encoding=UTF-8 -Xmx1024m net.sf.l2j.gameserver.GameServer
REM
REM For debug purpose (for devs), use this :
REM java -Dfile.encoding=UTF-8 -Xmx1536m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,ad dress=7456 net.sf.l2j.gameserver.GameServer
REM If you have a big server and lots of memory, you could experiment for example with
REM java -server -Dfile.encoding=UTF-8 -Xmx1536m -Xms4096m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
REM -------------------------------------
Pronto, agora seu servidor está preparado para suportar mais de 1000 Players online.
Softwares necessários:
Citação:
Windows 2003 server edition x64
Java SE Development Kit 6 Update 5 x64
MySQL 5.1 x64
Setokaiba
Atrás de um DITADOR existe um grande amor!
Registrado em: Oct 2008
Localização: 45º 33º 34º N | 122º 41º 41º W DESTINATION: ANYWHERE Adidas
seto... com 4 gb d ram o q devo fazer na memoria virtual ??? tem alguma ideia???
tenho um atlon x2 5200 uma placa mae ate q boua
eh uma ecs black edition gf8200a
4 gb d ram ddr2 800
mas.. tenho 1 hd soh sata
tem alguma dica pra aumenta o desenpenho ?
aahh to com o windowns xp 64 bits !!
Amigo o tutorial deixa claramente o que se tem a fazer.
Simplesmente calcule o valor de GB e defina...vá testando sem medo, até obter um resultado satisfatório.
Este tutorial é para se ter uma noção.
Cada computador varia de um para o outro.
__________________
Quem foi que falou que eu não sou um moleque atrevido?
Ganhei minha fama de bamba na roda de fórums, fico feliz em saber o que fiz.
Faça favor respeite quem pode chegar onde a gente chegou.
Também somos linha de frente de toda essa história.
Nós somos do tempo de fórums sem fama, sem glória.
Não se discute talento nem seu argumento
E a gente chegou muito bem sem desmerecer a ninguém, enfrentando no peito um certo preconceito e muito desdém.
Hoje em dia é fácil dizer (SE) é nossa raiz
Tá chovendo de gente que fala da (SE) e não sabe o que diz.
Por isso vê lá onde pisa respeite a camisa que a gente suou.
Respeite quem pode chegar onde a gente chegou.
E quando chegar no terreiro procure primeiro
saber quem eu sou
Respeite quem pode chegar onde a gente chegou!
__________________
Quem foi que falou que eu não sou um moleque atrevido?
Ganhei minha fama de bamba na roda de fórums, fico feliz em saber o que fiz.
Faça favor respeite quem pode chegar onde a gente chegou.
Também somos linha de frente de toda essa história.
Nós somos do tempo de fórums sem fama, sem glória.
Não se discute talento nem seu argumento
E a gente chegou muito bem sem desmerecer a ninguém, enfrentando no peito um certo preconceito e muito desdém.
Hoje em dia é fácil dizer (SE) é nossa raiz
Tá chovendo de gente que fala da (SE) e não sabe o que diz.
Por isso vê lá onde pisa respeite a camisa que a gente suou.
Respeite quem pode chegar onde a gente chegou.
E quando chegar no terreiro procure primeiro
saber quem eu sou
Respeite quem pode chegar onde a gente chegou!
seto isu ai da certo em interlud versao l2emu ? meu serve ta maus com 80 players
da leg trava e volta meu PC atlon 6000 4 gigas HD 320 se der posso ta cologando mais um HD de 320 sata XD
O seguinte membro abaixo disse Obrigado(a) a : BlooDCircle por gostar deste Post :
seto... Você podia por quantas pessoas online cada internet aguenta... tipo... 1mb... 4... 10... e assim vai...
Eu tenho uma de 10mb e estava pensando em fazer um server... mas não sei quantas pessoas ele aguenta...