记录的时候没有发现江南白衣大侠的文章
读了以后才知道 我错了
还是直接看这个文章
http://www.javaeye.com/post/596059
window 上面的看
http://kong-kong.javaeye.com/blog/172972


在sorlaris 上面

修改catalina.sh
==============================================
CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1861"
export CATALINA_OPTS

这样可以远程调试,可以google一下如何使用Eclipse 远程调试

================================================
LANG=zh
export LANG
LC_ALL=zh_CN.GB18030
export LC_ALL

设置字符集,如果不设置,经常出现字符集的问题,尤其使用xml文件的时候
=================================================
JAVA_OPTS='-server -XmsM -XmxM -XX:+UseConcMarkSweepGC  -XX:+PrintGCDetails  -XX:+PrintGCTimeStamps'
export JAVA_OPTS

设置内存
这是我的一个日志
Heap
 def new generation   total 54464K, used 5336K [0x10030000, 0x13b40000, 0x13b40000)
  eden space 48448K,  11% used [0x10030000, 0x10566260, 0x12f80000)
  from space 6016K,   0% used [0x13560000, 0x13560000, 0x13b40000)
  to   space 6016K,   0% used [0x12f80000, 0x12f80000, 0x13560000)
 tenured generation   total 725952K, used 42922K [0x13b40000, 0x40030000, 0x40030000)
   the space 725952K,   5% used [0x13b40000, 0x1652a960, 0x1652aa00, 0x40030000)
 compacting perm gen  total 26880K, used 26741K [0x40030000, 0x41a70000, 0x44030000)
   the space 26880K,  99% used [0x40030000, 0x41a4d5b8, 0x41a4d600, 0x41a70000)
No shared spaces configured.



=================================================
tomcat service.xml 文件修改

<Connector port="8080" maxHttpHeaderSize="8192"
useBodyEncodingForURI="true" maxThreads="1000"
minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443"
acceptCount="100" compression="on" compressionMinSize="2048"
compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"
  connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/>
=============================================

window 的配置 请参考另一篇文章

http://kong-kong.javaeye.com/blog/172972


另外 这篇文章也不错
http://tech.163.com/05/0711/10/1OCH7J2000091589.html
评论
发表评论

您还没有登录,请登录后发表评论

lzmhehe
搜索本博客
博客分类
最近加入圈子
存档
最新评论