forked from kkme/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.xml
41 lines (35 loc) · 1.09 KB
/
launch.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>
<project name="soul.launch" basedir="." default="gs">
<tstamp>
<format property="launch.time" pattern="yyyyMMddhhmmss"/>
</tstamp>
<path id="cp">
<pathelement location="${basedir}/soul.jar"/>
<fileset dir="${basedir}/lib" includes="*.jar,*.zip"/>
</path>
<presetdef name="java16">
<java classpathref="cp" fork="true">
<jvmarg value="-XX:+HeapDumpOnOutOfMemoryError"/>
<jvmarg value="-XX:+UseConcMarkSweepGC"/>
<jvmarg value="-Xloggc:gc_${launch.time}.log"/>
</java>
</presetdef>
<target name="gs">
<java16 classname="com.hifun.soul.gameserver.GameServer">
<jvmarg value="-Xms4096M"/>
<jvmarg value="-Xmx4096M"/>
<jvmarg value="-Xmn1024M"/>
<jvmarg value="-Xss2M"/>
<jvmarg value="-XX:MaxTenuringThreshold=20"/>
<jvmarg value="-XX:SurvivorRatio=4"/>
</java16>
</target>
<target name="ls">
<java16 classname="com.hifun.soul.logserver.LogServer">
<jvmarg value="-Xms1024M"/>
<jvmarg value="-Xmx1024M"/>
<jvmarg value="-Xss1M"/>
<jvmarg value="-XX:SurvivorRatio=4"/>
</java16>
</target>
</project>