Newbie Spellweaver
- Joined
- Dec 8, 2006
- Messages
- 12
- Reaction score
- 0
I believe you can do it by using the renice command
Code:renice -20 <pid>
renice sets the process priority, -20 being the highest priority (realtime) and 19 (low priority)
so, renice -20 and whatever the process id of the java process is on linux, then renice -19 for whatever the server process id is.
To get the process ID of the process(if you know the name of it) type:
Code:ps -ax |grep <processname> ex. ps -ax |grep java
you should get something like so:
Code:534 ttyl S 0:00 java
then type
Code:renice -20 534
and that will set the java priority to realtime
if you don't know the process name you can get a full list of processes using the ps command and that will show you all of the current processes and their IDs
-
root 4825 0.0 0.0 2872 1336 pts/0 S 05:51 0:00 /bin/bash ./GameServer_loop.sh
root 4830 3.1 21.9 755924 340868 pts/0 Sl 05:51 1:04 \_ java -Xmx512m -cp ibmaio.jar:bsf.jar:javolution.jar:bsh-2.0.jar:jython.j
root 4847 0.0 0.0 2872 1336 pts/0 S 05:51 0:00 /bin/bash ./LoginServer_loop.sh
root 4852 0.6 1.6 269512 25584 pts/0 Sl 05:51 0:12 \_ java -Xmx64m -cp javolution.jar:c3p0-0.9.0.4.jar:mysql-connector-java-3.
great:/home/linuana/Server/gameserver# renice -20 4852
4852: old priority 0, new priority -20
great:/home/linuana/Server/gameserver# renice -20 4830
4830: old priority 0, new priority -20
great:/home/linuana/Server/gameserver#
thx for the tip
but nope, didnt work, tried different settings, on both login and gameserver... but nope, no chances x/
damnit, why did i freaking changed from a clean l2j that worked fine to sum buggy variation package... NONE OF THEM WORK!!! the only one i even got running properly was Panthers... but its bugged like hell, dont wanna change back to clean l2j cuzz i'd be losing all my work so far x(
so please.. if anyone knows a fix for the summons, i'd appreciate it that your saving me days of work =)
you didnt tell that you are using linux :smilie4:linux doesnt have windows problems
and it worked befor on a clean l2j install with the same java im using now
but in panthers pack it just doesnt seem to work :x
maybe a config error or sumtin, meh
L2j is designed for JAVA and mySQL not for windows@khadia, idd and so far im kinda shocked on how much l2j servers are actually hosted on windows =D even though l2j is actually designed on windows, im not having any windows problems like ppl have that use it on windows