|
From: Leif M. <le...@ta...> - 2008-10-05 09:05:00
|
Stas, I was able to to check the default priorities using the following command: ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm On Ubuntu, the Wrapper is defaulting to a nice level of 0 and a real-time priority of 24, but the JVM is set to a nice level of 0 and a real-time priority of 19. According to the nice manual however, the range of possible values is -20 (most favorable) to 19 (least favorable) If I set the PRIORITY in the script to 5 then the nice levels both get set to 5, but the real-time priorities are 19 and 15 respectively. This is actually lower priority. Setting priorities to a value higher than 0 requires root privilege. If do so and set it to -5, then the nice levels are both -5, and the real-time priorities are 29 and 26 respectively. So quick answer, the default is 0. I need to look into the real-time priority more on my end. you are probable seeing the lower priority do to this difference in real-time priorities between the top level wrapper process and its child java process. I had not noticed this before. Cheers, Leif On Wed, Oct 1, 2008 at 11:30 PM, Stas Oskin <sta...@gm...> wrote: > Hi Leif. > > Thanks, I see. > > Do you have any idea how to find current priority level (so I could increase > 1 by 1). > > Regards. > > 2008/10/1 Leif Mortenson <le...@ta...> >> >> Stas, >> On linux, open your wrapper shell script in an editor and modify the >> PRIORITY value found in the settings section towards the top. These >> are standard nice levels, so look at "man nice" for details. >> >> Cheers, >> Leif >> >> On Wed, Oct 1, 2008 at 9:44 PM, Stas Oskin <sta...@gm...> wrote: >> > Hi Leif. >> > >> > 2008/10/1 Leif Mortenson <le...@ta...> >> >> >> >> Stas, >> >> That's great news. The memory leaks were in the Java code? What are >> >> you maximum memory settings set to? Are they low enough that the >> >> entire JVM will fit in memory without any swapping along side the OS >> >> and other apps being used? Java performs very poorly when its memory >> >> is being swapped out. (Not a Wrapper issue) >> > >> > The leaks were in JNI code and quickly took the whole memory. This >> > caused >> > Java to swap. >> > >> >> >> >> About the CPU, I reread this thread but I don't think you ever told me >> >> what platform you are running on. That will make a big difference. >> >> Under UNIX, there is a setting in the shell script which allows you to >> >> specify a "nice" level to control the priority. >> > >> > We use Linux - CentOS distro. What setting we should look to? >> > >> >> >> >> On Windows, it is done using the >> >> wrapper.ntservice.process_priority=NORMAL property. Please be sure to >> >> read the warnings in the documentation. >> >> >> >> >> >> http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-process-priority.html >> >> >> >> Normally on most platforms, the OS gives priority to the Windowing >> >> system and those processes to make them more responsive. That is why >> >> on UNIX, it is good to run servers in a headless environment. >> > >> > Hmm, we running the server without any X installed, strictly via console >> > - >> > is this what you call headless? >> > >> > Actually, this is the main app the server was targeted to, so we indeed >> > prefer to give it all the priority we can (without hanging the OS of >> > course). >> > >> > Regards. >> > >> > >> > ------------------------------------------------------------------------- >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> > challenge >> > Build the coolest Linux based applications with Moblin SDK & win great >> > prizes >> > Grand prize is a trip for two to an Open Source event anywhere in the >> > world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > Wrapper-user mailing list >> > Wra...@li... >> > https://lists.sourceforge.net/lists/listinfo/wrapper-user >> > >> > >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |