{"id":1536,"date":"2010-01-17T16:33:46","date_gmt":"2010-01-17T14:33:46","guid":{"rendered":"http:\/\/firefang.net\/blog\/?p=1536"},"modified":"2010-01-17T21:33:23","modified_gmt":"2010-01-17T19:33:23","slug":"%d7%97%d7%99%d7%91%d7%95%d7%a8-%d7%9c%d7%aa%d7%94%d7%9c%d7%99%d7%9a-%d7%92%d7%90%d7%95%d7%95%d7%94-%d7%9e%d7%a8%d7%95%d7%97%d7%a7-%d7%a2%d7%9d-visualvm-%d7%9c%d7%9e%d7%97%d7%a9%d7%91-%d7%a9%d7%9e","status":"publish","type":"post","link":"https:\/\/firefang.net\/blog\/1536","title":{"rendered":"\u05d7\u05d9\u05d1\u05d5\u05e8 \u05dc\u05ea\u05d4\u05dc\u05d9\u05da \u05d2'\u05d0\u05d5\u05d5\u05d4 \u05de\u05e8\u05d5\u05d7\u05e7 \u05e2\u05dd VisualVM \u05dc\u05de\u05d7\u05e9\u05d1 \u05e9\u05de\u05d5\u05d2\u05df \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e4\u05d9\u05d9\u05e8\u05d5\u05d5\u05d0\u05dc"},"content":{"rendered":"<p>\u05e2\u05dd \u05d4\u05e9\u05e0\u05d9\u05dd \u05e0\u05d5\u05e1\u05e4\u05d5 \u05dc\u05d2'\u05d0\u05d5\u05d5\u05d4 \u05db\u05dc\u05d9\u05dd \u05e1\u05d8\u05e0\u05d3\u05e8\u05d8\u05d9\u05d9\u05dd \u05e9\u05de\u05d0\u05e4\u05e9\u05e8\u05d9\u05dd \u05d7\u05d9\u05d1\u05d5\u05e8 \u05dc\u05de\u05db\u05d5\u05e0\u05d4 \u05d5\u05d9\u05e8\u05d8\u05d5\u05d0\u05dc\u05d9\u05ea \u05d7\u05d9\u05d4, \u05d5\u05d1\u05d7\u05d9\u05e0\u05d4 \u05e9\u05dc \u05de\u05d4 \u05e9\u05e7\u05d5\u05e8\u05d4 \u05e9\u05dd \u05db\u05db\u05dc\u05d9 \u05dc\u05de\u05e6\u05d9\u05d0\u05ea \u05d1\u05e2\u05d9\u05d5\u05ea \u05d1\u05d6\u05de\u05df \u05d4\u05e8\u05d9\u05e6\u05d4 \u05e9\u05dc \u05ea\u05d5\u05db\u05e0\u05d9\u05d5\u05ea.<\/p>\n<ul>\n<li>jps : \u05de\u05e8\u05d0\u05d4 \u05ea\u05d4\u05dc\u05d9\u05db\u05d9 \u05d2'\u05d0\u05d5\u05d5\u05d4<\/li>\n<li>jstack : \u05de\u05e6\u05d9\u05d2 \u05d0\u05ea \u05e8\u05e9\u05d9\u05de\u05ea \u05d4\u05ea'\u05e8\u05d3\u05d9\u05dd \u05d1\u05ea\u05d4\u05dc\u05d9\u05da \u05d2'\u05d0\u05d5\u05d5\u05d4, \u05d5\u05de\u05d4 \u05db\u05dc \u05d0\u05d7\u05d3 \u05de\u05d4\u05dd \u05e2\u05d5\u05e9\u05d4.<\/li>\n<li>jmap: \u05de\u05d0\u05e4\u05e9\u05e8 \u05e9\u05de\u05d9\u05e8\u05d4 \u05dc\u05e7\u05d5\u05d1\u05e5 \u05e9\u05dc \u05ea\u05de\u05d5\u05e0\u05ea \u05d4\u05d6\u05db\u05e8\u05d5\u05df (heap dump) \u05e9\u05dc \u05ea\u05d4\u05dc\u05d9\u05da \u05d2'\u05d0\u05d5\u05d5\u05d4. \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d1\u05d7\u05d5\u05df \u05d0\u05ea \u05d4\u05e7\u05d5\u05d1\u05e5 \u05e2\u05dd jhat \u05d0\u05d5 \u05e2\u05dd <a href=\"https:\/\/visualvm.dev.java.net\/\">VisualVM<\/a>.<\/li>\n<li>jhat : \u05de\u05d0\u05e4\u05e9\u05e8 \u05e0\u05d9\u05ea\u05d5\u05d7 \u05e7\u05d1\u05e6\u05d9 heap dump \u05e9\u05e0\u05d5\u05e6\u05e8\u05d5 \u05d1\u05e2\u05d6\u05e8\u05ea jmap.<\/li>\n<li>jconsole : \u05de\u05de\u05e9\u05e7 \u05e4\u05e9\u05d5\u05d8 \u05e9\u05de\u05d0\u05e4\u05e9\u05e8 \u05d1\u05d7\u05d9\u05e0\u05d4 \u05e9\u05dc \u05e9\u05d9\u05de\u05d5\u05e9 \u05d4\u05d6\u05db\u05e8\u05d5\u05df, \u05e9\u05d9\u05de\u05d5\u05e9 \u05d1\u05d6\u05de\u05df \u05de\u05e2\u05d1\u05d3 \u05d5\u05e2\u05d5\u05d3.<\/li>\n<li><a href=\"https:\/\/visualvm.dev.java.net\/\">visualvm<\/a>: \u05db\u05dc\u05d9 \u05d7\u05d6\u05e7 \u05d9\u05d5\u05ea\u05e8 \u05dejconsole, \u05e9\u05d4\u05d7\u05dc <a href=\"http:\/\/java.sun.com\/javase\/6\/webnotes\/6u18.html\">\u05de\u05e2\u05d3\u05db\u05d5\u05df 18<\/a> \u05e9\u05dc JDK 1.6.0 \u05de\u05d2\u05d9\u05e2 \u05e2\u05dd \u05d4JDK. \u05d5\u05d9\u05d6'\u05d5\u05d0\u05dc VM \u05de\u05d0\u05e4\u05e9\u05e8 \u05d2\u05dd \u05e0\u05d9\u05ea\u05d5\u05d7 \u05d1\u05d9\u05e6\u05d5\u05e2\u05d9\u05dd \u05e4\u05e9\u05d5\u05d8 (cpu and memory profiling).<\/li>\n<\/ul>\n<p>\u05db\u05dc \u05d4\u05db\u05dc\u05d9\u05dd \u05d4\u05d0\u05dc\u05d5 \u05ea\u05d5\u05de\u05db\u05d9\u05dd \u05d2\u05dd \u05d1\u05d2\u05d9\u05e9\u05d4 \u05dc\u05de\u05db\u05d5\u05e0\u05d4 \u05de\u05e8\u05d5\u05d7\u05e7\u05ea \u05d1\u05e6\u05d5\u05e8\u05d4 \u05d6\u05d5 \u05d0\u05d5 \u05d0\u05d7\u05e8\u05ea, \u05d4\u05d1\u05e2\u05d9\u05d4 \u05d4\u05d9\u05d0 \u05e9\u05db\u05de\u05e2\u05d8 \u05d1\u05dc\u05ea\u05d9 \u05d0\u05e4\u05e9\u05e8\u05d9 \u05dc\u05d4\u05ea\u05d7\u05d1\u05e8 \u05d0\u05d9\u05ea\u05dd \u05dc\u05de\u05db\u05d5\u05e0\u05d4 \u05e9\u05de\u05d5\u05d2\u05e0\u05ea \u05d1\u05e4\u05d9\u05d9\u05e8\u05d5\u05d5\u05d0\u05dc \u05db\u05d9 \u05d4\u05dd \u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e2\u05dd \u05e4\u05d5\u05e8\u05d8\u05d9\u05dd \u05d0\u05e7\u05e8\u05d0\u05d9\u05d9\u05dd.<br \/>\n\u05d0\u05dd \u05e2\u05dd \u05db\u05dc\u05d9 \u05e9\u05d5\u05e8\u05ea \u05d4\u05e4\u05e7\u05d5\u05d3\u05d4 \u05e2\u05d5\u05d3 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05e1\u05ea\u05d3\u05e8 \u05e2\u05dc \u05e9\u05e8\u05ea \u05de\u05e8\u05d5\u05d7\u05e7 (\u05e7\u05dc \u05d9\u05d5\u05ea\u05e8 \u05dc\u05d4\u05e8\u05d9\u05e5 jps \u05d9\u05e9\u05d9\u05e8\u05d5\u05ea \u05e2\u05dc \u05d4\u05e9\u05e8\u05ea \u05de\u05d0\u05e9\u05e8 \u05dc\u05e0\u05e1\u05d5\u05ea \u05dc\u05e2\u05e9\u05d5\u05ea \u05d0\u05ea \u05d6\u05d4 \u05de\u05e8\u05d7\u05d5\u05e7), \u05e2\u05dd \u05d4\u05db\u05dc\u05d9\u05dd \u05d4\u05d2\u05e8\u05d0\u05e4\u05d9\u05d9\u05dd \u05d4\u05e1\u05d9\u05e4\u05d5\u05e8 \u05db\u05d1\u05e8 \u05d0\u05d7\u05e8.<\/p>\n<h3 style=\"text-align: center;\">VisualVM<\/h3>\n<p style=\"text-align: center;\"><a title=\"VisualVM\" href=\"http:\/\/firefang.net\/blog\/wp-content\/uploads\/2010\/01\/vvm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1537\" title=\"vvm\" src=\"http:\/\/firefang.net\/blog\/wp-content\/uploads\/2010\/01\/vvm.png\" alt=\"\" width=\"476\" height=\"348\" srcset=\"https:\/\/firefang.net\/blog\/wp-content\/uploads\/2010\/01\/vvm.png 810w, https:\/\/firefang.net\/blog\/wp-content\/uploads\/2010\/01\/vvm-300x220.png 300w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/a><\/p>\n<p style=\"text-align: right;\">\u05d0\u05d6 \u05d0\u05d9\u05da \u05d1\u05db\u05dc \u05d6\u05d0\u05ea \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05ea\u05d7\u05d1\u05e8 \u05dc\u05ea\u05d4\u05dc\u05d9\u05da \u05d2'\u05d0\u05d5\u05d5\u05d4 \u05de\u05e8\u05d5\u05d7\u05e7 \u05e2\u05dd VisualVM?<br \/>\n\u05d4\u05ea\u05d4\u05dc\u05d9\u05da \u05e7\u05e6\u05ea \u05de\u05d5\u05e8\u05db\u05d1, \u05d5\u05dc\u05db\u05df \u05d0\u05e0\u05d9 \u05d0\u05ea\u05e2\u05d3 \u05d0\u05d5\u05ea\u05d5 \u05db\u05d0\u05df:<\/p>\n<p style=\"text-align: right;\">\n<h2>\u05e2\u05dc \u05d4\u05de\u05d7\u05e9\u05d1 \u05d4\u05de\u05e8\u05d5\u05d7\u05e7:<\/h2>\n<p style=\"text-align: right;\">1. \u05e6\u05e8\u05d5 \u05e7\u05d5\u05d1\u05e5 permissions.txt \u05e9\u05d9\u05db\u05d9\u05dc \u05d0\u05ea \u05d6\u05d4:<\/p>\n<p>[code]<br \/>\ngrant {<br \/>\npermission java.security.AllPermission;<br \/>\n};<\/p>\n<p>[\/code]<\/p>\n<p>2. \u05d4\u05e8\u05d9\u05e6\u05d5 \u05d0\u05ea jstatd (\u05e9\u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05ea\u05d4\u05dc\u05d9\u05db\u05d9\u05dd \u05de\u05e8\u05d5\u05d7\u05e7\u05d9\u05dd \u05dc\u05e7\u05d1\u05dc \u05e8\u05e9\u05d9\u05de\u05d4 \u05e9\u05dc \u05de\u05db\u05d5\u05e0\u05d5\u05ea \u05d2'\u05d0\u05d5\u05d5\u05d4 \u05e9\u05e8\u05e6\u05d5\u05ea \u05e2\u05dc \u05d4\u05de\u05db\u05d5\u05e0\u05d4 \u05d5\u05dc\u05d4\u05ea\u05d7\u05d1\u05e8 \u05d0\u05dc\u05d9\u05d4\u05df) :<\/p>\n<p>[code]<\/p>\n<p>jstatd -J-Djava.security.policy=permissions.txt<br \/>\n[\/code]<\/p>\n<p>3. \u05d4\u05e8\u05d9\u05e6\u05d5 \u05d0\u05ea \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e9\u05dc\u05d4\u05dd \u05e2\u05dd \u05d4\u05e4\u05e8\u05de\u05d8\u05e8 \u05d4\u05d1\u05d0:<\/p>\n<p>[code]<br \/>\njava -Dcom.sun.management.jmxremote MainClass<br \/>\n[\/code]<\/p>\n<h2>\u05e2\u05dc \u05d4\u05de\u05d7\u05e9\u05d1 \u05d4\u05de\u05e7\u05d5\u05de\u05d9:<\/h2>\n<p>1. \u05e6\u05e8\u05d5 \u05ea\u05e2\u05dc\u05d5\u05ea SSH \u05dc\u05e9\u05e8\u05ea \u05db\u05da:<\/p>\n<p>[code]<br \/>\nssh -D9696 -L1101:localhost:1099 your_server<br \/>\n[\/code]<br \/>\n\u05e9\u05d9\u05de\u05d5 \u05dc\u05d1 \u05e9\u05d9\u05e9 \u05e4\u05d4 \u05e9\u05ea\u05d9 '\u05ea\u05e2\u05dc\u05d5\u05ea':<\/p>\n<ul>\n<li>\u05ea\u05e2\u05dc\u05ea TCP \u05de1101 \u05d0\u05dc 1099 \u05d1\u05e9\u05e8\u05ea \u05d4\u05de\u05e8\u05d5\u05d7\u05e7. \u05d6\u05d5 \u05ea\u05e2\u05dc\u05d4 \u05e9\u05de\u05d0\u05e4\u05e9\u05e8\u05ea \u05dc\u05d4\u05ea\u05d7\u05d1\u05e8 \u05d0\u05dc \u05d4jstatd \u05d9\u05e9\u05d9\u05e8\u05d5\u05ea.<\/li>\n<li>\u05e4\u05e8\u05d5\u05e7\u05e1\u05d9 SOCKS5 \u05e9\u05de\u05d0\u05d6\u05d9\u05df \u05e2\u05dc \u05e4\u05d5\u05e8\u05d8 9696<\/li>\n<\/ul>\n<p>2. \u05d4\u05e4\u05e2\u05d9\u05dc\u05d5 \u05d0\u05ea visualvm \u05e2\u05dd \u05d4\u05e4\u05e8\u05de\u05d8\u05e8\u05d9\u05dd \u05d4\u05d1\u05d0\u05d9\u05dd :<\/p>\n<p>[code]<br \/>\nvisualvm -J-Dnetbeans.system_socks_proxy=localhost:9696 -J-Djava.net.useSystemProxies=true<br \/>\n[\/code]<\/p>\n<p>\u05e9\u05d0\u05d5\u05de\u05e8\u05d9\u05dd \u05dc\u05d5 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05e4\u05e8\u05d5\u05e7\u05e1\u05d9 SOCKS5 \u05e9\u05d4\u05e7\u05de\u05e0\u05d5.<\/p>\n<p>3. \u05de\u05ea\u05d5\u05da VisualVM, \u05d4\u05d5\u05e1\u05d9\u05e4\u05d5 \u05dc\u05d7\u05d9\u05d1\u05d5\u05e8 <span style=\"text-decoration: underline;\"><strong>\u05d4\u05de\u05e7\u05d5\u05de\u05d9<\/strong><\/span> \u05d7\u05d9\u05d1\u05d5\u05e8 \u05dcjstatd \u05d1\u05e4\u05d5\u05e8\u05d8 1101.<\/p>\n<p>\u05d6\u05d4\u05d5. \u05d4\u05e8\u05d1\u05d4 \u05d9\u05d5\u05ea\u05e8 \u05de\u05e1\u05d5\u05d1\u05da \u05de\u05de\u05d4 \u05e9\u05d4\u05d9\u05d9\u05ea\u05d9 \u05e8\u05d5\u05e6\u05d4, \u05d0\u05dd \u05de\u05d9\u05e9\u05d4\u05d5 \u05de\u05db\u05d9\u05e8 \u05d3\u05e8\u05da \u05d9\u05d5\u05ea\u05e8 \u05e4\u05e9\u05d5\u05d8\u05d4 \u05d0\u05e0\u05d9 \u05d0\u05e9\u05de\u05d7 \u05dc\u05e9\u05de\u05d5\u05e2.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u05e2\u05dd \u05d4\u05e9\u05e0\u05d9\u05dd \u05e0\u05d5\u05e1\u05e4\u05d5 \u05dc\u05d2'\u05d0\u05d5\u05d5\u05d4 \u05db\u05dc\u05d9\u05dd \u05e1\u05d8\u05e0\u05d3\u05e8\u05d8\u05d9\u05d9\u05dd \u05e9\u05de\u05d0\u05e4\u05e9\u05e8\u05d9\u05dd \u05d7\u05d9\u05d1\u05d5\u05e8 \u05dc\u05de\u05db\u05d5\u05e0\u05d4 \u05d5\u05d9\u05e8\u05d8\u05d5\u05d0\u05dc\u05d9\u05ea \u05d7\u05d9\u05d4, \u05d5\u05d1\u05d7\u05d9\u05e0\u05d4 \u05e9\u05dc \u05de\u05d4 \u05e9\u05e7\u05d5\u05e8\u05d4 \u05e9\u05dd \u05db\u05db\u05dc\u05d9 \u05dc\u05de\u05e6\u05d9\u05d0\u05ea \u05d1\u05e2\u05d9\u05d5\u05ea \u05d1\u05d6\u05de\u05df \u05d4\u05e8\u05d9\u05e6\u05d4 \u05e9\u05dc \u05ea\u05d5\u05db\u05e0\u05d9\u05d5\u05ea. jps : \u05de\u05e8\u05d0\u05d4 \u05ea\u05d4\u05dc\u05d9\u05db\u05d9 \u05d2'\u05d0\u05d5\u05d5\u05d4 jstack : \u05de\u05e6\u05d9\u05d2 \u05d0\u05ea \u05e8\u05e9\u05d9\u05de\u05ea \u05d4\u05ea'\u05e8\u05d3\u05d9\u05dd \u05d1\u05ea\u05d4\u05dc\u05d9\u05da \u05d2'\u05d0\u05d5\u05d5\u05d4, \u05d5\u05de\u05d4 \u05db\u05dc \u05d0\u05d7\u05d3 \u05de\u05d4\u05dd \u05e2\u05d5\u05e9\u05d4. jmap: \u05de\u05d0\u05e4\u05e9\u05e8 \u05e9\u05de\u05d9\u05e8\u05d4 \u05dc\u05e7\u05d5\u05d1\u05e5 \u05e9\u05dc \u05ea\u05de\u05d5\u05e0\u05ea \u05d4\u05d6\u05db\u05e8\u05d5\u05df (heap dump) \u05e9\u05dc \u05ea\u05d4\u05dc\u05d9\u05da \u05d2'\u05d0\u05d5\u05d5\u05d4. \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d1\u05d7\u05d5\u05df &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/firefang.net\/blog\/1536\" class=\"more-link\">\u05dc\u05d4\u05de\u05e9\u05d9\u05da \u05dc\u05e7\u05e8\u05d5\u05d0<span class=\"screen-reader-text\"> \u05d7\u05d9\u05d1\u05d5\u05e8 \u05dc\u05ea\u05d4\u05dc\u05d9\u05da \u05d2'\u05d0\u05d5\u05d5\u05d4 \u05de\u05e8\u05d5\u05d7\u05e7 \u05e2\u05dd VisualVM \u05dc\u05de\u05d7\u05e9\u05d1 \u05e9\u05de\u05d5\u05d2\u05df \u05e2\u05dc \u05d9\u05d3\u05d9 \u05e4\u05d9\u05d9\u05e8\u05d5\u05d5\u05d0\u05dc<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,17],"tags":[],"class_list":["post-1536","post","type-post","status-publish","format-standard","hentry","category-java","category-open-soruce"],"_links":{"self":[{"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/posts\/1536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/comments?post=1536"}],"version-history":[{"count":7,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/posts\/1536\/revisions"}],"predecessor-version":[{"id":1544,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/posts\/1536\/revisions\/1544"}],"wp:attachment":[{"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/media?parent=1536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/categories?post=1536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/firefang.net\/blog\/wp-json\/wp\/v2\/tags?post=1536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}