[Guide] Tips For Server Optimization

Status
Not open for further replies.
Joined
Feb 3, 2008
Messages
130
Reaction score
49
1. Did you know that you can use 127.0.0.1 on session server IP address?
- Session server only need, to know if the agent, login and field server are active or not. That's why you can simply just bind this on localhost which is 127.0.0.1 even if your server is online. On this you lessen the congestion of network on main ip address you using.

credit : eifelzocker

2. Did you know that our client doesn't need level.rcc?
- Yes, you can simply remove level.rcc on your client, because server files is much concern on reading lev files, just like glogicserver.rcc which you can simply remove on your client.
Note : Only working on Ep2 & Ep3 as ImmortalcooL said, Thank you.


credit : ImmortalcooL and Seifer13

3. How to lessen character fail to initialize?
- If your agent limit is 1500 user. make sure you double it on field (3000).
Note : setting up high limit consume more memory usage.

credit : Jolin88

4. How to lessen cpu usage?
- just add the line below in cfg files (session, agent, field and login)

Setup :
language_set 1
profile_on 1
chat 1
print_info 1
print_freeslot 1
print_ip 1
service_provider 3
max_thread 4
use_intel_tbb 4
use_event_thread 4
testserver 4
adult 4
heartbeat 4
gameguard 4

Note : recommended only for test server and server files needed tbb.dll

For Ep5 : http://forum.ragezone.com/f528/guide-tip-lessen-cpu-usage-ep6-version-1-k-ep5-669048/

credit : eifelzocker (ep6), ImmortalcooL (ep5), Thailand Admin (ep5) and swanlay (ep5)

5. How to shrink your database?
- Run the code on sql query
Use your-database-name
GO

Alter Database your-database-name Set Recovery Simple
GO

Alter Database your-database-name Set Recovery Full
GO

DBCC SHRINKFILE ('your-database-name_Log', 1)
GO

Note : change your-database-name to specific database name you using like RanUser and etc.

credit : eifelzocker and derkxz

6. How to lessen RanLog disk usage?
- Put /* (for open comment remarks) and */ (closing comment remarks) on all SP procedure INSERT command.

Example :
USE [RanLog]
GO
/****** Object: StoredProcedure [dbo].[log_serverstate] Script Date: 06/15/2010 15:35:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER Procedure [dbo].[log_serverstate]
@usernum int,
@usermax int,
@svrnum int,
@sgnum int
AS
SET NOCOUNT ON

/*INSERT INTO LogServerState (UserNum, UserMaxNum, SvrNum, SGNum)
VALUES (@usernum, @usermax, @svrnum, @sgnum)*/

SET NOCOUNT OFF

Note : Recommended only if you don't need RanLog

credit : eifelzocker and derkxz
 

Attachments

  • lo - [Guide] Tips For Server Optimization - RaGEZONE Forums
    low.webp
    36.7 KB · Views: 576
Last edited:
Status
Not open for further replies.
Back