{"id":1343,"date":"2012-12-25T13:59:57","date_gmt":"2012-12-25T04:59:57","guid":{"rendered":"http:\/\/www.techscore.com\/blog\/?p=1343"},"modified":"2018-11-14T16:33:58","modified_gmt":"2018-11-14T07:33:58","slug":"tomcat%e3%81%ae%e3%83%aa%e3%83%a2%e3%83%bc%e3%83%88%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e3%81%ae%e5%ae%9f%e8%a1%8c%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.techscore.com\/blog\/2012\/12\/25\/tomcat%e3%81%ae%e3%83%aa%e3%83%a2%e3%83%bc%e3%83%88%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e3%81%ae%e5%ae%9f%e8%a1%8c%e6%96%b9%e6%b3%95\/","title":{"rendered":"Tomcat\u306e\u30ea\u30e2\u30fc\u30c8\u30c7\u30d0\u30c3\u30b0\u306e\u5b9f\u884c\u65b9\u6cd5"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u4e45\u3057\u3076\u308a\u306bJava\u3092\u3084\u308a\u306f\u3058\u3081\u305f\u6cb3\u91ce\u3067\u3059\u3002<\/p>\n<p>Tomcat\u306e\u30ea\u30e2\u30fc\u30c8\u30c7\u30d0\u30c3\u30b0\u3092\u5b9f\u884c\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4e45\u3057\u3076\u308a\u3059\u304e\u3066\u3084\u308a\u65b9\u304c\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u5fa9\u7fd2\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u306fTomcat6\u3067\u3059\u304c\u3001Tomcat7\u3067\u3082\u884c\u3051\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h2>Java\u81ea\u4f53\u306e\u30ea\u30e2\u30fc\u30c8\u30c7\u30d0\u30c3\u30b0\u65b9\u6cd5<\/h2>\n<p>Java\u306e\u5b9f\u884c\u6642\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:sh decode:true\">-agentlib:jdwp=transport=dt_socket,address=10000,server=y,suspend=n<\/pre>\n<p>\u3053\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306fTomcat\u306b\u9650\u3089\u305a\u3001Java\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u4f7f\u7528\u3067\u304d\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<h2>Tomcat\u306e\u30ea\u30e2\u30fc\u30c8\u30c7\u30d0\u30c3\u30b0<\/h2>\n<p>\u5148\u307b\u3069\u7d39\u4ecb\u3057\u305f\u30aa\u30d7\u30b7\u30e7\u30f3\u3092JAVA_OPTS\u306a\u3069\u306b\u6307\u5b9a\u3057\u3066\u3082\u3088\u3055\u305d\u3046\u3067\u3059\u304c\u3001Tomcat\u306e\u5834\u5408\u306b\u306f\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8(catalina.sh)\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u5229\u7528\u3057\u305f\u65b9\u304c\u30e9\u30af\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:sh decode:true\">.\/catalina.sh jpda start<\/pre>\n<p>\u3053\u306ejpda\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u4e0a\u3067\u7d39\u4ecb\u3057\u305fjava\u306e\u30ea\u30e2\u30fc\u30c8\u30c7\u30d0\u30c3\u30b0\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u3001Tomcat\u3092\u8d77\u52d5\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\ncatalina.sh\u3092\u53c2\u7167\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:sh decode:true\">if [ \"$1\" = \"jpda\" ] ; then\r\n  if [ -z \"$JPDA_TRANSPORT\" ]; then\r\n    JPDA_TRANSPORT=\"dt_socket\"\r\n  fi\r\n  if [ -z \"$JPDA_ADDRESS\" ]; then\r\n    JPDA_ADDRESS=\"8000\"\r\n  fi\r\n  if [ -z \"$JPDA_SUSPEND\" ]; then\r\n    JPDA_SUSPEND=\"n\"\r\n  fi\r\n  if [ -z \"$JPDA_OPTS\" ]; then\r\n    JPDA_OPTS=\"-agentlib:jdwp=transport=$JPDA_TRANSPORT,address=$JPDA_ADDRESS,server=y,suspend=$JPDA_SUSPEND\"\r\n  fi\r\n  CATALINA_OPTS=\"$CATALINA_OPTS $JPDA_OPTS\"\r\n  shift\r\nfi<\/pre>\n<p>\u30dd\u30fc\u30c8\u306e\u6307\u5b9a\u306a\u3069\u306f\u74b0\u5883\u5909\u6570\u3067\u6307\u5b9a\u3059\u308b\u3068\u826f\u3044\u307f\u305f\u3044\u3067\u3059\u306d\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30dd\u30fc\u30c8\u306f8000\u306a\u306e\u3067\u3001\u4f8b\u3048\u307010000\u3067\u8d77\u52d5\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:sh decode:true\">JPDA_ADDRESS=10000 .\/catalina.sh jpda start<\/pre>\n<h2>\u3061\u306a\u307f\u306b\u2026<\/h2>\n<p>JDK1.5\u4ee5\u524d\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3084\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u306f\u5c06\u6765\u7684\u306b\u306a\u304f\u306a\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u4eca\u306f\u4f7f\u308f\u306a\u3044\u65b9\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<pre class=\"lang:sh decode:true\">-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=10000<\/pre>\n<p>&nbsp;<\/p>\n<p>cf: <a href=\"http:\/\/www.ibm.com\/developerworks\/jp\/opensource\/library\/os-eclipse-javadebug\/\" target=\"_blank\">Eclipse \u3092\u4f7f\u3063\u3066\u30ea\u30e2\u30fc\u30c8\u3067 Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001\u4e45\u3057\u3076\u308a\u306bJava\u3092\u3084\u308a\u306f\u3058\u3081\u305f\u6cb3\u91ce\u3067\u3059\u3002<\/p>\n<p>Tomcat\u306e\u30ea\u30e2\u30fc\u30c8\u30c7\u30d0\u30c3\u30b0\u3092\u5b9f\u884c\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4e45\u3057\u3076\u308a\u3059\u304e\u3066\u3084\u308a\u65b9\u304c\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u5fa9\u7fd2\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/><a href=\"https:\/\/www.techscore.com\/blog\/2012\/12\/25\/tomcat%e3%81%ae%e3%83%aa%e3%83%a2%e3%83%bc%e3%83%88%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e3%81%ae%e5%ae%9f%e8%a1%8c%e6%96%b9%e6%b3%95\/\">\u7d9a\u304d\u3092\u8aad\u3080...<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[57,72,73],"_links":{"self":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/1343"}],"collection":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/comments?post=1343"}],"version-history":[{"count":1,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/1343\/revisions"}],"predecessor-version":[{"id":17999,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/posts\/1343\/revisions\/17999"}],"wp:attachment":[{"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/media?parent=1343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/categories?post=1343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techscore.com\/blog\/wp-json\/wp\/v2\/tags?post=1343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}