JRun 4.0¿¡¼ °¢Á¾ µ¿ÀÛ »óȲÀ» ¸ð´ÏÅ͸µ ÇÏ´Â ¹æ¹ýÀÔ´Ï´Ù. ¸ð´ÏÅ͸µÀº
JRunÀÇ Æ¯Á¤ »óŵéÀ» À̺¥Æ® ·Î±× ÆÄÀÏ¿¡ ±â·ÏÇÏ°Ô ÇÑ ÈÄ ÀÌ ÆÄÀÏÀÇ ³»¿ëÀ» ¸ð´ÏÅ͸µ
ÇÏ´Â ¹æ¹ýÀ¸·Î ÀÌ·ç¾îÁö´Âµ¥, ¼¹öÀÇ ÆÛÆ÷¸Õ½º¸¦ ¶³¾îÆ®¸®¹Ç·Î Ưº°ÇÑ ¹®Á¦°¡ ÀÖÁö
¾Ê´ÂÇÑ ¼ºñ½º½Ã¿¡´Â °¡±ÞÀû »ç¿ëÄ¡ ¾Ê´Â °ÍÀÌ ÁÁ½À´Ï´Ù.
¡á Thread ¹× Request, Memory °ü·Ã »çÇ× ¸ð´ÏÅ͸µ ¹æ¹ý
1. ¸ð´ÏÅ͸µÀ» ¿øÇÏ´Â JRunÀÇ ¼¹ö root µð·ºÅ丮(¿ì¸® °°Àº °æ¿ì´Â /home3/jrun-server/smipc)
¾Æ·¡¿¡ ÀÖ´Â SERVER-INF µð·ºÅ丮¿¡ ÀÖ´Â jrun.xmlÀ»
ÆÄÀÏÀ» open.
2. ¾Æ·¡ ºÎºÐÀÌ ÁÖ¼®Ã³¸®µÇ¾î ÀÖÀ¸¸é ÁÖ¼®À» ÇØÁ¦. <service
class="jrunx.metrics.MetricsService" name="MetricsService"> <attribute
name="bindToJNDI">true</attribute> </service>
3. ¾Æ·¡ Ç׸ñÀ» ã¾Æ false °ªÀ» true·Î º¯°æ. <attribute
name="metricsEnabled">false</attribute>
4. <attribute name="metricsFormat"> Ç׸ñÀ» ã¾Æ ´ÙÀ½°ú °°ÀÌ
³»¿ëÀ» º¯°æ. (ÇÑÁÙ·Î ÀÔ·Â) <attribute name="metricsFormat">Web
threads (busy/total): {jrpp.busyTh}/{jrpp.totalTh} Requests(delayed/handled/dropped):
{jrpp.delayRq}/{jrpp.handledRq}/{jrpp.droppedRq} Sessions: {sessions} Total
Memory={totalMemory} Free={freeMemory}</attribute>
5. ¸¸¾à ¸ð´ÏÅ͸µ ÁÖ±â(°ª °»½Å ÁÖ±â)¸¦ º¯°æÇÏ°í ½ÍÀ¸¸é, <attribute name="metricsLogFrequency">
¼Ó¼ºÀÇ ¼ýÀÚ¸¦ º¯°æÇØÁÖ¸é µË´Ï´Ù. (ÃÊ ´ÜÀ§)
¡á Connection Pool Activity ¸ð´ÏÅ͸µ
1. jrun serverÀÇ SERVER-INF µð·ºÅ丮¿¡
ÀÖ´Â jrun-resources.xml ÆÄÀÏÀ» ¿ÀÇÂ.
2. ¸ð´ÏÅ͸µÀ» ¿øÇÏ´Â DataSource¸¦ ã¾Æ ´ÙÀ½ Ç׸ñÀ» true·Î °ªÀ» º¯°æ. <debugging>false</debugging>
3. SERVER-INF µð·ºÅ丮ÀÇ jrun.xml ÆÄÀÏÀ» ¿¾î MetricsServiceÀÇ
ÁÖ¼® ÇØÁ¦ ¿©ºÎ¸¦ È®ÀÎÇÏ°í, metricsEnabled ¿É¼ÇÀÇ
È°¼ºÈ ¿©ºÎ È®ÀÎ. (ù¹ø° Ç׸ñÀÇ 2~3¹ø Âü°í)
4. <attribute name="metricsFormat"> Ç׸ñÀ» ã¾Æ ´ÙÀ½ ³»¿ëÀ»
Ãß°¡. SmeDB : JDBC Timeouts: {jdbc.SmeDB.timeouts} Pool
Size : {jdbc.SmeDB.poolSize} Active Connections: {jdbc.SmeDB.activeConnections}
Query Duration: {jdbc.SmeDB.queryDuration} Query Count: {jdbc.SmeDB.queryCount} *
½ÇÁ¦ Àû¿ë½Ã¿¡´Â SmeDB ´ë½Å ¸ð´ÏÅ͸µÀ» ¿øÇÏ´Â DataSource À̸§À» ÀÔ·ÂÇؾßÇÔ.
ÀÌÈÄ Jrun ¼¹ö¸¦ Àç½ÃÀÛÇÑ ÈÄ Jrun ¼³Ä¡µð·ºÅ丮(/home1/jrun) ¾Æ·¡ÀÇ logs
µð·ºÅ丮¿¡ ÀÖ´Â {server_name}-event.log ÆÄÀÏÀ»
tail -f µîÀ¸·Î °üÂûÇÏ¸é µË´Ï´Ù.
* iWiz´Ô¿¡ ÀÇÇؼ °Ô½Ã¹° À̵¿µÇ¾ú½À´Ï´Ù (2010-02-03 17:00)
|