ãããã¡ã€ã©ãŒã䜿çšãã
ãããããã¢ããªã±ãŒã·ã§ã³ãç£èŠããæãç°¡åã§æé ãªæ¹æ³ã§ãã ãããã¡ã€ã©ãŒã䜿çšãããšãJVMã®ç¶æ ããªã¢ã«ã¿ã€ã ã§ç£èŠããåã ã®ãããŒã®ã¢ã¯ãã£ããã£ã®åæãŸã§ããã®åäœã®çµ±èšã詳现ã«åæã§ããŸãã åžå Žã«ã¯ç¡æãšææã®äž¡æ¹ã®ãœãªã¥ãŒã·ã§ã³ããããŸãã
- jconsoleã¯ãã³ãŒããŒã³ã¬ã¯ã¿ãŒã®ãã£ã³ãã»ããã JDK Tools and Utils ãã«å«ãŸãããŠãŒãã£ãªãã£ã§ãã MBeanãšã®çŽæ¥äœæ¥ãå«ãããã¹ãŠã®åºæ¬çãªJVMçµ±èšãžã®ã¢ã¯ã»ã¹ãæäŸããŸãã
- VisualVMã¯jconsoleã®é«åºŠãªã¢ããã°ã§ãã ãã°ããã®éïŒ èª°ãã誰ããè²·ã£ããšã ïŒãjdkãä»å±ããŠããŸãã ãã®èšäºã§ã¯ãVisualVMãšãããã¡ã€ãªã³ã°ã®åºæ¬ã«ã€ããŠèªãããšãã§ããŸãã ãããã¡ã€ã©ãŒããªã¢ãŒããµãŒããŒäžã®JVMã«æ¥ç¶ããå¿
èŠãããããæ°ã«ããããªãå Žåã¯ããã®äžã§visualvmãã€ããªãèŠã€ããŠãããXã»ãã·ã§ã³å€æã§sshçµç±ã§åŒã³åºãã ãã§ãã
ssh -X login@domain /usr/bin/jvisualvm
- JProfilerã¯ãåçšãããã¡ã€ã©ãŒã®ãªãŒããŒã§ãïŒããã䜿çšããçµéšãè±å¯ãªäººãããã°ãåãã§æ¡çšããŸãïŒã
ç¶ç¶çãªç£èŠ
ãããã¡ã€ã©ãŒã«ã¯1ã€ã®å€§ããªæ¬ ç¹ããããŸãã1æ¥24æéãé±7æ¥ãéãããŸãŸã«ããŠããããšã¯ã§ããŸããã ããã¯åã«ãããç®çãšããŠããŸããã ãªããã®ãããªç£èŠãå¿ èŠãªã®ã§ããïŒ æ¬¡ã«ãã¢ããªã±ãŒã·ã§ã³ã«åé¡ãçºçããææãããããªãããšã ç¶ç¶çãªç£èŠã«ããã1æ¥ã1æ¥ã1ãæã®çµ±èšã®èŠçŽåæãå®è¡ããã¡ã¢ãªäœ¿çšéãã¹ã¬ãããããã³ãã®ä»ã®ã¡ããªãã¯ã®ã°ã©ãã«åºã¥ããŠããµãŒãã¹/ã¢ããªã±ãŒã·ã§ã³ã®äžæ£ãªåäœã®åå ã«é¢ããåæä»®å®ãæ§ç¯ã§ããŸãã ããšãã°ãå€ã«QAãã¹ããå®è¡ããæã«ç¶ç¶çãªç£èŠã«åºã¥ããŠãµãŒãã¹ã®åäœãåæããŸãã
蚱容ã§ããäŸ¡æ Œãšå質ã®çµã¿åããã§æ¢è£œã®ã·ã¹ãã ãèŠã€ãããªãã£ãããã Zabbixã§è±å¯ãªçµéšãç©ãã§ããã®ã§ã Zabbixãèªåã®ããŒãºã«åãããããšã«ããŸããïŒZapcatã«ç²ŸéããŠãã人ã®ããã«ããã®èšäºã®æåŸã«ããã€ãã®èšèããããŸãïŒã ããã«å°ããããšãã§ããŸãïŒããªãNagiosã§ã¯ãªãZabbixãªã®ãïŒãã ç®±ããåºããŠããã«æ©èœããã¢ãžã¥ãŒã«ã®æåãããã°ãšãããã³ã°ãå¿ èŠãšããªãå®æåã倧奜ãã§ãã
ããã§ã¯ããµãŒããŒåŽã®æçã«åãããããŸããã;-)ïŒ ãZabbix Meansã«ããç¶ç¶çãªJMXã¢ãã¿ãªã³ã°ããã£ãã·ã¥ãæºåããã«ã¯ã次ã®ãã®ãå¿ èŠã§ãã
- Ubuntu Server 10.04ïŒä»£ããã«DebianãšRedHatã䜿çšã§ããŸãïŒ
- å³ããPostgreSQLãŸãã¯MySQL
- ZabbixãµãŒããŒ
- Zabbixã¯ã©ã€ã¢ã³ã
- Oracle JavaïŒãã®èšäºã®ã¹ã¯ãªããã¯JVM HotSpotã«çŠç¹ãåœãŠãŠããŸãïŒ
- Jolokia ïŒJMX-HTTPããªããžïŒ-JMX RMIæ¥ç¶ã®ã»ããã¢ããã«é¢ããåé¡ã®åé¿ã«åœ¹ç«ã¡ãŸã
ãã¹ãŠã®ã¢ã¯ã·ã§ã³ã¯ãæ°ããã€ã³ã¹ããŒã«ãããOSã§å®è¡ãããããšãæãåºãããŠãã ããã
Zabbixã¯ã€ãã¯ã»ããã¢ãã
ç£èŠã®ããã«ã¯ã©ã€ã¢ã³ããã·ã³ãæ¥ç¶ãããZabbixãµãŒããŒããã§ã«æ§æãããŠããå Žåã¯ã次ã®ã¹ãããã«çŽæ¥é²ãããšãã§ããŸãã
ZabbixãµãŒããŒãšãšãŒãžã§ã³ãã¯ããªããžããªããã€ã³ã¹ããŒã«ããããšãããœãŒã¹ããçµã¿ç«ãŠãããšãã§ããŸãã éåžžããªããžããªã«ã¯zabbixã®éåžžã«å€ãããŒãžã§ã³ããããŸããããããã¯ãã¹ãã®ããã«è¡ãããŸãããæ¥åžžçãªäœ¿çšã«ã¯æ°ãããã®ããå§ãããŸãã ãããã£ãŠããªããžããªããé 眮ããŸãã
sudo apt-get install zabbix-agent zabbix-server-pgsql zabbix-frontend-php php5-pgsql tomcat6
ã€ã³ã¹ããŒã«åŸã localhost / zabbixã«ç§»åããzabbixãã¹ã¯ãŒãã䜿çšããŠadminãŠãŒã¶ãŒãšããŠãã°ã€ã³ããŸãã ãæ§æ->ãã¹ããã¿ãã«ç§»åãããZabbixãµãŒããŒããã¯ãªãã¯ããŸãã ã¹ããŒã¿ã¹ããç£èŠå¯Ÿè±¡å€ããããç£èŠå¯Ÿè±¡ãã«å€æŽããŸãã 次ã«ããšãã£ã¿ãŒã§ãã¡ã€ã«/etc/zabbix/zabbix_agentd.confãéãããã®å 容ãææ¡ããããã®ã«çœ®ãæããŸãã
Server=127.0.0.1
Hostname=redcraft
StartAgents=16
DisableActive=1
EnableRemoteCommands=1
DebugLevel=4
Timeout=30
PidFile=/var/run/zabbix-agent/zabbix_agentd.pid
LogFile=/var/log/zabbix-agent/zabbix_agentd.log
Zabbix UIã§ããç£èŠ->æåŸã®ããŒã¿ãã«é²ã¿ãããŒã«ã«ãã·ã³ããããŒã¿ã®åéãéå§ãããããšã確èªããŸãã ããã§Zabbixã®åºæ¬ã»ããã¢ãããå®äºããŸãããJMXã®æºåã«é²ã¿ãŸãã
Jolokia JVMãšãŒãžã§ã³ãã®æ¥ç¶
å®éšçãªJVMãšããŠãtomcatã䜿çšããŸãã RMIãããã³ã«çµç±ã§æ¥ç¶ããã®ã§ã¯ãªããHTTPã䜿çšããããã«ãJMokia JMX-HTTPããªããžã䜿çšããŸãã Tomcatã®å Žåã æŠäºã¢ã»ã³ããªã¯å ¬åŒWebãµã€ãã§å ¥æã§ããŸãã ããŠã³ããŒãããwarãã¡ã€ã«ã®ååãjolokia.warã«å€æŽãã/ var / lib / tomcat6 / webappsã«é 眮ããŸãã Tomcatãåèµ·åããŸãã localhostã¢ãã¬ã¹ïŒ8080 / jolokiaãéãããã¹ãŠãæ£ããè¡ããããšã次ã®æ å ±ã衚瀺ãããŸãã
{"timestamp":1328444565,"status":200,"request":{"type":"version"},"value":{"protocol":"6.1","agent":"1.0.2","info":{"product":"tomcat","vendor":"Apache","version":"6.0.24"}}}
ã¹ã¿ã³ãã¢ãã³ã¢ããªã±ãŒã·ã§ã³ãããå Žåãjolokiaã«ã¢ããªã±ãŒã·ã§ã³ãæ¥ç¶ããã«ã¯ã次ã®ãã©ã¡ãŒã¿ãŒãèµ·åã©ã€ã³ã«è¿œå ããŸãã
-javaagent:$LIBDIR/jolokia-agent.jar=port=9090,host=localhost
$ LIBDIR / jolokia-agent.jarã¯Jolokia JVM-Agentãžã®ãã¹ã§ã
Jolokiaã§ããŒã¿åéãã»ããã¢ãããã
ããã§ãJMX-HTTPããªããžãæ¥ç¶ãããZabbixãšJVMãã§ããŸããã ããŒã¿åéãæŽçããå¿ èŠããããŸãã ããŒã¿åéã¹ããŒã ã¯æ¬¡ã®ããã«ãªããŸãã
ã¡ããªãã¯ãçŽæ¥åéãããäžéãããã¡ãŒã䜿çšããçç±ã説æããŸãã ã¹ããŒã ãèšå®ããã«æ§æãããšããªã¯ãšã¹ãããšã«JMXçµ±èšãåéããã¹ã¯ãªãããèµ·åãããŸããããã¯ããããã¡ããèªã¿åãããããªãœãŒã¹ãéäžçã«äœ¿çšããæäœã§ãã ãããã£ãŠãNç§ããšã«ãã¹ãŠã®ã¡ããªãã¯ãåéããããã¡ã€ã«ããšã«é 眮ãããå¿ èŠã«å¿ããŠãã¡ã€ã«ããèªã¿åãããã¢ãã«ãéžæããŸããã
ããŒã¿ãåéããã«ã¯ãæ¢è£œã®ã©ã€ãã©ãªã䜿çšããŠJMX-HTTPããªããžãæäœããŸãã ã©ã€ãã©ãªã¯Perlã§èšè¿°ãããCPANã䜿çšããŠã€ã³ã¹ããŒã«ãããŸãã
sudo cpan -i JMX::Jmx4Perl
ã€ã³ã¹ããŒã«ãæåããããjmx4perlã䜿çšããŠTomcatã§æåã®ã¡ããªãã¯ãååŸããããšããŸãã
jmx4perl localhost:8080/jolokia read java.lang:type=Memory HeapMemoryUsage
ã³ãã³ãã®çµæã¯æ¬¡ã®ããã«ãªããŸãã
{
committed => 65470464,
init => 0,
max => 132579328,
used => 10264072
}
ãæ³åã®ãšãããTomcat JVMããŒãã¡ã¢ãªã®äœ¿çšã«é¢ããæ å ±ãååŸããŸããã
ããã§ãã¡ããªãã¯ãåéããã¹ã¯ãªãããäœæããæå®ãããã£ã¬ã¯ããªã®ãã¡ã€ã«ã«é 眮ããå¿ èŠããããŸãã ããªãã¯ããªãèªèº«ãæžãããç§ã®äŸã䜿çšããããšãã§ããŸãïŒ
#!/usr/bin/perl use strict; use warnings; use Error qw( :try ); use JMX::Jmx4Perl; use JMX::Jmx4Perl::Alias; use File::Path qw(make_path remove_tree); use Data::Dumper; my %source = ( GC_COPY_COLLECTION_COUNT => ["java.lang:name=Copy,type=GarbageCollector", "CollectionCount"], GC_MARK_SWEEP_COLLECTION_COUNT => ["java.lang:name=ConcurrentMarkSweep,type=GarbageCollector", "CollectionCount"], GC_COPY_COLLECTION_TIME => ["java.lang:name=Copy,type=GarbageCollector", "CollectionTime"], GC_MARK_SWEEP_COLLECTION_TIME => ["java.lang:name=ConcurrentMarkSweep,type=GarbageCollector", "CollectionTime"], THREAD_COUNT => ["THREAD_COUNT"], MEMORY_HEAP_COMITTED => ["MEMORY_HEAP_COMITTED"], THREAD_COUNT_DAEMON => ["THREAD_COUNT_DAEMON"], THREAD_COUNT_STARTED => ["THREAD_COUNT_STARTED"], MEMORY_HEAP_INIT => ["MEMORY_HEAP_INIT"], RUNTIME_VM_VENDOR => ["RUNTIME_VM_VENDOR"], MEMORY_HEAP_MAX => ["MEMORY_HEAP_MAX"], RUNTIME_VM_NAME => ["RUNTIME_VM_NAME"], CL_TOTAL => ["CL_TOTAL"], CL_LOADED => ["CL_LOADED"], CL_UNLOADED => ["CL_UNLOADED"], THREAD_COUNT_PEAK => ["THREAD_COUNT_PEAK"], RUNTIME_UPTIME => ["RUNTIME_UPTIME"], MEMORY_HEAP_USED => ["MEMORY_HEAP_USED"], RUNTIME_VM_VERSION => ["RUNTIME_VM_VERSION"], ); my $log_dir = "/var/jmx"; my $result = 0; my $port = $ARGV[0]; my $cmd = $ARGV[1]; if(defined $cmd && defined $port) { try { my $jmx = JMX::Jmx4Perl->new(url => "http://localhost:$port/jolokia/"); if($cmd eq "DUMP") { make_path("$log_dir/$port"); while(my($key, $value) = each %source) { open FILE, ">$log_dir/$port/$key" or throw Error::Simple("Could not open file"); print FILE $jmx->get_attribute(@$value) . "\n"; close FILE; } $result = 1; } else { my $param = $source{$cmd}; $result = $jmx->get_attribute(@$param); } } catch Error with { $result = 0; # --- Uncomment for debug --- #my $ex = shift; #print $ex->{-text}."\n"; #print $ex->{-line}."\n"; # --- Debug block ended --- }; } else { $result = 0; } print $result . "\n";
ã¹ã¯ãªããã/ usr / local / sbinã«é 眮ããjmx_grabberãåŒã³åºããŸãã ã¹ã¯ãªãããæ©èœããªãå¯èœæ§ããããŸãã ããã¯ãGC_COPY_COLLECTION_COUNTãGC_MARK_SWEEP_COLLECTION_COUNTãGC_COPY_COLLECTION_TIMEãGC_MARK_SWEEP_COLLECTION_TIMEã®æåã®4ã€ã®ã¡ããªãã¯ãåå ã§ãã ã¡ããªãã¯ã¯ããã¬ããŒãžã³ã¬ã¯ã¿ãŒãïŒGCïŒã®çµ±èšæ å ±ã®ã¿ã衚瀺ããŸãã ç¹å®ã®JVMå®è£ ã§äœ¿çšãããã¬ããŒãžã³ã¬ã¯ã¿ãŒã®ååã¯ç°ãªãå ŽåããããŸãã JVM HotSpotã«ã€ããŠã¯ãPS Scavenge + PS MarkSweepãšConcurrentMarkSweep + Copyã®2ã€ã®ãã¢ã«åºäŒããŸããã GCã®ååãå€æããã®ãé£ããå Žåã¯ãã³ãã³ããå®è¡ããŸã
jmx4perl localhost:8080/jolokia attributes | less
次ã«ãããŒã¯ãŒããGarbageCollectorããæ€çŽ¢ããŸãã 次ã®ãããªãã®ããããŸãã
java.lang:name=ConcurrentMarkSweep,type=GarbageCollector -- CollectionCount = 12
java.lang:name=ConcurrentMarkSweep,type=GarbageCollector -- LastGcInfo =
java.lang:name=ConcurrentMarkSweep,type=GarbageCollector -- CollectionTime = 0
java.lang:name=ConcurrentMarkSweep,type=GarbageCollector -- Name = ConcurrentMarkSweep
java.lang:name=ConcurrentMarkSweep,type=GarbageCollector -- Valid = [true]
å€ã¯ãjava.langïŒnameãã§ããããã¬ããŒãžã³ã¬ã¯ã¿ãŒãã®ããããã®ååã§ãã
ãã¡ã€ã«ããããŒã¿ãååŸããbashã¹ã¯ãªãããäœæããŸãããã
#!/bin/bash JMX_DIR="/var/jmx" if [ -r "$JMX_DIR/$1/$2" ]; then cat "$JMX_DIR/$1/$2" else echo 0; fi
èšè¿°ãããã¹ã¯ãªãããæ©èœãããã«ã¯ããã¡ã€ã«::ãã¹ãã¢ãžã¥ãŒã«::æ€çŽ¢ãJSONããšã©ãŒã®Perlã©ã€ãã©ãªãå¿ èŠã§ãã ããããã€ã³ã¹ããŒã«ããŸãã
sudo cpan -i File::Path
sudo cpan -i Module::Find
sudo cpan -i JSON
sudo cpan -i Error
ãã¹ãŠãæ£ããè¡ããããã©ããã確èªããŸãã 次ã®ãã©ã¡ãŒã¿ãŒã䜿çšããŠã¹ã¯ãªãããåŒã³åºããŸãã
/usr/local/sbin/jmx-grabber 8080 RUNTIME_VM_NAME
ãJava HotSpotïŒTMïŒClient VMããšããè¡ãè¿ãå¿ èŠããããŸãã ãã©ã«ããŒ/ var / jmxãäœæããä»ã®ãã©ã¡ãŒã¿ãŒã䜿çšããŠã¹ã¯ãªãããåŒã³åºããŸãã
/usr/local/sbin/jmx-grabber 8080 DUMP
/ var / jmxãã©ã«ããŒã®å 容ã確èªããŸãã ãµããã£ã¬ã¯ããª8080ã衚瀺ãããŸãããµããã£ã¬ã¯ããªã«ã¯ãJVMã¡ããªãã¯ãå«ããã¡ã€ã«ãå«ãŸããã¡ããªãã¯ããšã«1ã€ã®ãã¡ã€ã«ããããŸãã 8080ãjolokiaãšãŒãžã§ã³ãïŒã¹ã¿ã³ãã¢ãã³ã€ã³ã¹ããŒã«ïŒãŸãã¯jolokiaã³ã³ãããŒãåããTomcatããªãã¹ã³ããããŒã«ã«ããŒãã§ãããšæšæž¬ããã®ã¯é£ãããããŸããã
ã¡ããªãã¯ã®åéãšèªã¿åããèšå®ããããZabbixã«ã¢ããããŒãããããã»ã¹ã«é²ã¿ãŸãã
JVMã¡ããªãã¯ãZabbixã«ã¢ããããŒããã
/etc/zabbix/zabbix_agentd.confãã¡ã€ã«ã«2è¡è¿œå ããŸãã
UserParameter=jmx_grabber[*],/usr/local/sbin/jmx-grabber $1 $2
UserParameter=jmx_reader[*],/usr/local/sbin/jmx-stats-reader $1 $2
ãã®åŸãzabbixãšãŒãžã§ã³ããåèµ·åããããšãå¿ããªãã§ãã ããã è¿œå ãããè¡ã«ãããéåžžã®Zabbixã¡ããªãã¯ã®ãããªãã¡ã€ã«ã·ã¹ãã ã¹ã¯ãªããã«ã¢ã¯ã»ã¹ã§ããŸãã å¥ã®æ¹æ³ããããŸãïŒzabbixãã©ãããŒã䜿çšã§ããŸãããã¢ã¯ãã£ãã¢ãŒãã§çµ±èšãéä¿¡ããããã«zabbixãšãŒãžã§ã³ãã䜿çšããŸããã 倧ããªéãã¯ãããŸããã Zabbix-agentã䜿çšããå ŽåãUIãä»ããŠZabbixã§ããŒã¿åéæéãèšå®ãããŸãã ãã©ãããŒã䜿çšããå Žåã¯ãããããïŒãŸãã¯ãã®é¡äŒŒç©ïŒãä»ããŠã¡ããªãã¯ãéä¿¡ããããã®cronã¹ã¯ãªãããåæ£ãããå¿ èŠããããŸãã
次ã«ããã³ãã¬ãŒããäœæããŸãã ãã®ããã»ã¹ã«æ·±ãå ¥ã蟌ãããšã¯ãããZabbixã«ã€ã³ããŒãããå¿ èŠããããã³ãã¬ãŒãã®å®æããxmlãã¡ã€ã«ãæ·»ä»ããŸãã ãããè¡ãã«ã¯ããæ§æ->ãšã¯ã¹ããŒã/ã€ã³ããŒããã¿ããéãïŒZabbixã®ææ°ããŒãžã§ã³ã§ã¯ãã€ã³ããŒãã¯ãæ§æ->ãã³ãã¬ãŒããã«ãããããã³ãã¬ãŒãã®ã€ã³ããŒãããã¿ã³ïŒããªã¹ããããã€ã³ããŒãããéžæããŸãã
次ã«ãè¿œå ãããã³ãã¬ãŒãããµãŒããŒã«å²ãåœãŠãå¿ èŠããããŸãã ãæ§æ->ãã¹ããã¿ãã«ç§»åãããZabbixãµãŒããŒããã¯ãªãã¯ããŸãã ããªã³ã¯ããããã³ãã¬ãŒããããã«ã§ããã³ãã¬ãŒããTemplate_Multitenant_Tomcat_JMX_Toolkitããè¿œå ããŸãã ãä¿åããã¯ãªãã¯ããŠããç£èŠ->æåŸã®ããŒã¿ãã«é²ã¿ãŸãã 20ç§åŸãTomcat JVMã§æåã®çµ±èšãååŸããŸãã ããŒã¿ãå±ããªãå Žåã¯ãzabbix-agentãå®è¡ãããŠãããã©ãããããã³æ£ããæ§æãããŠãããã©ããã確èªããŠãã ããïŒäžèšãåç §ïŒã 30ååŸãã°ã©ããèŠãããšãã§ãïŒãç£èŠ->ã°ã©ããïŒããTomcat JVM Memoryãã«ã€ããŠæ¬¡ã®ãããªãã®ã衚瀺ãããŸãã
ã»ãšãã©ã®å Žåã質åããããŸãããåãç©ç/ä»®æ³ãã·ã³äžã«è€æ°ã®JVMãããå Žåã¯ã©ããªããŸããïŒ ã¯ããããã¯äžå¿«ãªæ©èœã§ãããç£èŠã®ããã«1å°ã®ãã·ã³ã®è€æ°ã®JVMãè¿œå ããã«ã¯ãããŒã¿ãåéãããåjolokiaããŒãã«å¯ŸããŠåå¥ã®ãã³ãã¬ãŒããäœæããå¿ èŠããããŸãã
ãã¹ãå®è¡
ããŠãTomcat JVMã䜿çšããã¡ããªãã¯åéã·ã¹ãã ããããŸãã å®éã«è©ŠããŠã¿ããšããã§ãããã ãããã®ç®çã®ããã«ãã¹ã¬ãããäœæããå°ããªãµãŒãã¹ãäœæããŸãããã¹ã¬ããã¯ãJVMã§ãªããžã§ã¯ããåæ¢ãããŸã§ç¶ç¶çã«çæããŸãã å€éšããã¢ã¯ã»ã¹å¯èœãªç®¡çã€ã³ã¿ãŒãã§ã€ã¹ã¯æ¬¡ã®ããã«ãªããŸãã
[å¢å ]ãã¿ã³ãš[æžå°]ãã¿ã³ã¯ãã¹ã¬ããã®æ°ãå¢æžããŸãã[ä¹æ°]ã䜿çšãããšã次ã®ãªããžã§ã¯ããçæããåã«ãã¹ããªãŒã ã®é 延æéééã®ä¹æ°ãå¶åŸ¡ã§ããŸãã ãµãŒãã¹ã¯ãã¡ãããããŠã³ããŒãã§ããŸã ã
Tomcatã«ãµãŒãã¹ãé 眮ãã次ã®æäœãå®è¡ããŸãã
- ã¹ã¬ããæ°ã20ã«äžããŠ5åéåŸ ã¡ãŸã
- ã¹ã¬ããã®æ°ã50ã«å¢ããã5åéåã³åŸ ã¡ãŸã
- ãããŒé 延ä¿æ°ã50ã«æžãããŠ5åéåŸ ã¡ãŸã
- ã¹ã¬ããã®æ°ããŒãã«ãªã»ããããŸã
ãã®çµæã次ã®ã°ã©ããåŸãããŸãã
ã¶ãããã£ãã
åãå ¥ãå¯èœãªæ¢æã®ãœãªã¥ãŒã·ã§ã³ãèŠã€ãããªãã£ããšèšã£ããšããç§ã¯å°ããããã§ãã 1ã€ã®è§£æ±ºçããããŸã-ããã¯Zapcatã§ãã ãšããã§ãTomcatãšZabbixã暪æããããã«ããã䜿çšããã®ã«5å以äžããããŸããã ãªãèªè»¢è»ãçºæããã®ã§ããïŒ ããã«ã¯2ã€ã®çç±ããããŸãã
- zapcatã¯2008幎以éæŽæ°ãããŠããŸããã ãããå®å šã«æªããšããããã§ã¯ãªã-圌ã¯ãŸã ããªãããŸããã£ãã ãããã誰ããµããŒãããŠããªãã·ã¹ãã ã䜿ãããã¯ãããŸããã
- ãšãŒãžã§ã³ãã¯ãã¢ããªã±ãŒã·ã§ã³ã³ãŒãã§ã¹ã¿ã³ãã¢ãã³ã®zapcatãµãŒãã¹ã«çŽæ¥æ¥ç¶ããŸãã ç§ã«ãšã£ãŠã¯ãåºçæã«çŒå§èšããã®ä»ã®ã»ã³ãµãŒãçž«ãä»ããããããã«èŠããŸãããããã¯åŸã§æè¡ã§ããåãå€ããŸããã ç§ã¯æ¬åœã«zapcatïŒãã¯ããµããŒããããŠããªãïŒãã¢ããªã±ãŒã·ã§ã³ã®äžéšã«ããããããŸããã§ããã ããã¯å®å šã§ã¯ãªãã建ç¯ã®èŠ³ç¹ããã¯æç²ã§ãã çè«çã«ã¯ãzapcatã¯javaagentãšããŠèšèšã§ããŸãããåãååã®ãã£ã¬ã¯ãã£ãã䜿çšããŠæ¥ç¶ã§ããæ¢è£œã®å®è£ ã¯èŠã€ãããŸããã§ããã
ç§ã説æããç£èŠæ¹æ³ãå¿ èŠãã©ããããŸãã¯zapcatã§ååãã©ãããå€æããããã«ãå±éãç°¡åãªä»£æ¿æ段ãšããŠã次ã®è³ªåãããŠãã ããã
- ç£èŠããŒã«ãã¢ããªã±ãŒã·ã§ã³ã«çµ±åããŸããïŒ ïŒã¹ã¿ã³ãã¢ãã³ãµãŒãã¹ã«ã®ã¿é¢é£ïŒ
- ãã¡ã€ã«ã·ã¹ãã ïŒãŸãã¯ãã£ãã·ã¥ïŒã«æ¢ã«åéãããŠããäžéããŒã¿ã®è¿œå åŠçãå®è¡ããŸããã ãã¹ãŠã®ãµãŒãã¹ã³ããŒå šäœã®å¹³ååèšãèšç®ã§ããŸãã
- zabbix以å€ã®ããŒã«ã䜿çšããŠjmxããªããžçµç±ã§ãµãŒãã¹/ã¢ããªã±ãŒã·ã§ã³ã«ã¢ã¯ã»ã¹ããŸããïŒ
æåŸã«
ç§ãææ¡ãããªãã·ã§ã³ã¯ãç¹å®ã®ã¿ã¹ã¯ãšããŒãºã«åºã¥ããŠèçšå¹Žæ°ç£èŠã·ã¹ãã ãæ§ç¯ããããã®ãã¬ãŒã ã¯ãŒã¯ãšããŠã®æ¢æã®ç£èŠã·ã¹ãã ã§ã¯ãããŸããã ãšãŒãžã§ã³ããæ€åºããç£èŠã«ãããã¯ãŒã¯ããŒããèªåçã«è¿œå ããZabbixã®æ©èœãšäœµããŠãJavaãµãŒãã¹ã®åäœãå¶åŸ¡ããã¿ã¹ã¯ãæ°åç°¡çŽ åãããŸãã
èšå®ã«åé¡ãããå Žå-å人çãªã¡ãã»ãŒãžãã³ã¡ã³ããæžããŠãã ãããå¯èœãªéããäŒãããŸãã ãã¹ããã³ããæåã§æ§æããããªãå Žåã¯ãVirtualBoxã«æ¢è£œã®ã€ã¡ãŒãž ïŒãã°ã€ã³ã¬ããããã¹ã¯ãŒããã¹ã¯ãŒãïŒã䜿çšããããšããå§ãããŸãã
çŽ æŽãããå®éšãšå®å®ããJVMãã楜ãã¿ãã ããïŒ ;-)
PSïŒã©ã³ãã¿ã€ã ãšå€æ¹ã«ã®ã¿ã¡ãã»ãŒãžãšã³ã¡ã³ãã«è¿ä¿¡ã§ããŸã