<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CODIGG &#187; JAVA</title>
	<atom:link href="http://www.codigg.com/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codigg.com</link>
	<description>关注互联网，关注云计算，关注生活</description>
	<lastBuildDate>Fri, 08 Jul 2011 02:48:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Java程序内存分析:JMap与Eclipse Memory Analyzer</title>
		<link>http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/</link>
		<comments>http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 03:57:16 +0000</pubDate>
		<dc:creator>Codigg</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[jmap]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[outofmemory]]></category>

		<guid isPermaLink="false">http://www.codigg.com/?p=788</guid>
		<description><![CDATA[<a href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/"><img align="left" hspace="5" width="150" height="150" src="http://www.codigg.com/wp-content/uploads/2010/07/mat1-150x150.jpg" class="alignleft wp-post-image tfe" alt="" title="mat1" /></a>当程序中内存使用过多，或者存在内存泄露时，经常会报OutOfMemory错误。很多时候，尤其是在生产环境中，不得不马上重启服务，导致现场丢失，无法查找问题所在。

其实jdk中自带了很多分析监控工具，jmap就是其中之一。

当程序出现问题，先不要停止服务，先用ps看一下java的pid, 然后运行命令将内存导出来：



?View Code BASH/usr/local/jdk1.6.0_20/bin/jmap -dump:format=b,file=/dir/heap.bin

<span class="readmore"><a href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/" title="Java程序内存分析:JMap与Eclipse Memory Analyzer">阅读全文——共407字</a></span><h3>相关文章</h3><ul><li><a href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/" title="lighttpd不支持Expect: 100-continue的解决办法 2010.04.13">lighttpd不支持Expect: 100-continue的解决办法</a>(67)</li>
<li><a href="http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/" title="php版的AES算法（可与java兼容） 2010.01.21">php版的AES算法（可与java兼容）</a>(115)</li>
<li><a href="http://www.codigg.com/2009/12/qinghuaci-java/" title="青花瓷 java版 2009.12.30">青花瓷 java版</a>(70)</li>
<li><a href="http://www.codigg.com/2009/08/java-exception-code-method/" title="你的java代码够土吗？ 2009.08.10">你的java代码够土吗？</a>(56)</li>
</ul><h3>最近评论</h3><ul><li><a class="commentor" href="http://parklandinstitute.ca/member/12751" >Lacey Mad</a> : <a class="comment_content" href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/#comment-212645" title="View the entire comment by Lacey Mad" >Very useful publish here. Thanks for sharing your ...</a></li>
<li><a class="commentor" href="http://redyeastrice.blog.fc2.com/blog-entry-2.html" >side effects of red yeast rice</a> : <a class="comment_content" href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/#comment-210808" title="View the entire comment by side effects of red yeast rice" >May I simply say what a relief to find someone who...</a></li>
<li><a class="commentor" href="http://www.pomocdrogowagorzow.pl/" >Gorzow Wielkopolski</a> : <a class="comment_content" href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/#comment-209638" title="View the entire comment by Gorzow Wielkopolski" >I simply had to thank you so much once again. I am...</a></li>
<li><a class="commentor" href="http://www.123.vvcvv.waw.pl/" >Lionel Townson</a> : <a class="comment_content" href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/#comment-206274" title="View the entire comment by Lionel Townson" >˙ţC</a></li>
<li><a class="commentor" href="http://thirdeyelight.weebly.com/" >Kaiden</a> : <a class="comment_content" href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/#comment-205436" title="View the entire comment by Kaiden" >This piece of writing about SEO is really good one...</a></li>
</ul>]]></description>
		<wfw:commentRss>http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>lighttpd不支持Expect: 100-continue的解决办法</title>
		<link>http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/</link>
		<comments>http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 05:46:32 +0000</pubDate>
		<dc:creator>Codigg</dc:creator>
				<category><![CDATA[Linux/Server]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[JAVA]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.codigg.com/?p=710</guid>
		<description><![CDATA[由于lighttpd1.4.21之前的版本不支持Expect: 100-continue，所以有可能访问出现“HTTP/1.1 417 Expectation Failed”等错误提示，搜集整理了很多解决方法，如下：

1. 升级到 lighttpd 1.5.x，那应该没有这个问题了

2. （推荐）升级到 lighttpd 1.4.21 或以上版本（即最新的realease版本），在配置文件中加上一句



?View Code BASHserver.reject-expect-100-with-417=&#34;disabled&#34;

<span class="readmore"><a href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/" title="lighttpd不支持Expect: 100-continue的解决办法">阅读全文——共564字</a></span><h3>相关文章</h3><ul><li><a href="http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/" title="php版的AES算法（可与java兼容） 2010.01.21">php版的AES算法（可与java兼容）</a>(115)</li>
<li><a href="http://www.codigg.com/2009/09/php-curl-download-filename/" title="php curl下载文件时保存原文件名 2009.09.6">php curl下载文件时保存原文件名</a>(70)</li>
<li><a href="http://www.codigg.com/2011/07/php-uniqid-performance/" title="PHP中uniqid的性能 2011.07.8">PHP中uniqid的性能</a>(17)</li>
<li><a href="http://www.codigg.com/2010/12/php-treapdb-thrift/" title="用php操作treapdb 2010.12.7">用php操作treapdb</a>(8)</li>
<li><a href="http://www.codigg.com/2010/10/php-pfsockopen-errorno/" title="PHP pfsockopen错误码的含义 2010.10.18">PHP pfsockopen错误码的含义</a>(13)</li>
<li><a href="http://www.codigg.com/2010/08/php-request-cookie/" title="搞清楚php中$_REQUEST变量的问题，备忘一下 2010.08.16">搞清楚php中$_REQUEST变量的问题，备忘一下</a>(61)</li>
<li><a href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/" title="Java程序内存分析:JMap与Eclipse Memory Analyzer 2010.07.27">Java程序内存分析:JMap与Eclipse Memory Analyzer</a>(10)</li>
<li><a href="http://www.codigg.com/2010/04/ftp-curl-backup-shell/" title="下载远程ftp文件备份到本地的脚本 2010.04.7">下载远程ftp文件备份到本地的脚本</a>(22)</li>
<li><a href="http://www.codigg.com/2010/03/php-rrdtool-install/" title="安装php rrdtool 2010.03.24">安装php rrdtool</a>(205)</li>
<li><a href="http://www.codigg.com/2010/03/web-server-header-apache-lighttpd-nginx/" title="伪装WEB服务器(apache/lighttpd/nginx) 2010.03.20">伪装WEB服务器(apache/lighttpd/nginx)</a>(11)</li>
</ul><h3>最近评论</h3><ul><li><a class="commentor" href="http://darmowedzwonienie.pl" >VoipDiscount</a> : <a class="comment_content" href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/#comment-213019" title="View the entire comment by VoipDiscount" >I'm really enjoying the theme/design of your blog....</a></li>
<li><a class="commentor" href="http://cheapcontent.info/" >short article writing tips</a> : <a class="comment_content" href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/#comment-212883" title="View the entire comment by short article writing tips" >I wish to express some appreciation to you just fo...</a></li>
<li><a class="commentor" href="http://www.makoto-dojo.net/" >visit this</a> : <a class="comment_content" href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/#comment-212844" title="View the entire comment by visit this" >Hello convertxtodvd freeware ideal statement vso s...</a></li>
<li><a class="commentor" href="http://www.youtube.com/watch?v=FqdL-xuoLOI" >Jonathon Joern</a> : <a class="comment_content" href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/#comment-211330" title="View the entire comment by Jonathon Joern" >I’d need to check with you here. Which just isn’t ...</a></li>
<li><a class="commentor" href="http://djstools.com/cerca/akai-mpc-1000" >akai mpc 1000</a> : <a class="comment_content" href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/#comment-210926" title="View the entire comment by akai mpc 1000" >Hello, this is a good post!</a></li>
</ul>]]></description>
		<wfw:commentRss>http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/feed/</wfw:commentRss>
		<slash:comments>67</slash:comments>
		</item>
		<item>
		<title>php版的AES算法（可与java兼容）</title>
		<link>http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/</link>
		<comments>http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 14:14:13 +0000</pubDate>
		<dc:creator>Codigg</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[aes]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://www.codigg.com/?p=568</guid>
		<description><![CDATA[直接上代码吧



?View Code PHPclass CryptAES&#123;

    private $cipher     = &#34;rijndael-128&#34;;

    private $mode       = &#34;cbc&#34;;

<span class="readmore"><a href="http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/" title="php版的AES算法（可与java兼容）">阅读全文——共901字</a></span><h3>相关文章</h3><ul><li><a href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/" title="lighttpd不支持Expect: 100-continue的解决办法 2010.04.13">lighttpd不支持Expect: 100-continue的解决办法</a>(67)</li>
<li><a href="http://www.codigg.com/2011/07/php-uniqid-performance/" title="PHP中uniqid的性能 2011.07.8">PHP中uniqid的性能</a>(17)</li>
<li><a href="http://www.codigg.com/2010/12/php-treapdb-thrift/" title="用php操作treapdb 2010.12.7">用php操作treapdb</a>(8)</li>
<li><a href="http://www.codigg.com/2010/10/php-pfsockopen-errorno/" title="PHP pfsockopen错误码的含义 2010.10.18">PHP pfsockopen错误码的含义</a>(13)</li>
<li><a href="http://www.codigg.com/2010/08/php-request-cookie/" title="搞清楚php中$_REQUEST变量的问题，备忘一下 2010.08.16">搞清楚php中$_REQUEST变量的问题，备忘一下</a>(61)</li>
<li><a href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/" title="Java程序内存分析:JMap与Eclipse Memory Analyzer 2010.07.27">Java程序内存分析:JMap与Eclipse Memory Analyzer</a>(10)</li>
<li><a href="http://www.codigg.com/2010/03/php-rrdtool-install/" title="安装php rrdtool 2010.03.24">安装php rrdtool</a>(205)</li>
<li><a href="http://www.codigg.com/2009/12/qinghuaci-java/" title="青花瓷 java版 2009.12.30">青花瓷 java版</a>(70)</li>
<li><a href="http://www.codigg.com/2009/09/php-curl-download-filename/" title="php curl下载文件时保存原文件名 2009.09.6">php curl下载文件时保存原文件名</a>(70)</li>
<li><a href="http://www.codigg.com/2009/08/java-exception-code-method/" title="你的java代码够土吗？ 2009.08.10">你的java代码够土吗？</a>(56)</li>
</ul><h3>最近评论</h3><ul><li><a class="commentor" href="http://adam-perkins.com/wiki/index.php?title=AreThinninghairMethodGoodsandmethodsHonestOrsimplyjustAnadditionalMisconception" >Iona Simpler</a> : <a class="comment_content" href="http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/#comment-213920" title="View the entire comment by Iona Simpler" >I really like your writing style,  great  info ,  ...</a></li>
<li><a class="commentor" href="http://www.programyurdu.com/" >kim milyoner olmak ister</a> : <a class="comment_content" href="http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/#comment-213837" title="View the entire comment by kim milyoner olmak ister" >Genuinely needed publish admin great a person i bo...</a></li>
<li><a class="commentor" href="http://www.willowvalleyretirement.com" >retirement communities in pa</a> : <a class="comment_content" href="http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/#comment-213736" title="View the entire comment by retirement communities in pa" >I don't think I've never learned anything like thi...</a></li>
<li><a class="commentor" href="http://www.lemontravel.pl" >Bilety Lotnicze</a> : <a class="comment_content" href="http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/#comment-213523" title="View the entire comment by Bilety Lotnicze" >I’d have to check with you here. Which is not some...</a></li>
<li><a class="commentor" href="http://darmowedzwonienie.pl" >TopUpNow</a> : <a class="comment_content" href="http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/#comment-213227" title="View the entire comment by TopUpNow" >My programmer is trying to persuade me to move to ...</a></li>
</ul>]]></description>
		<wfw:commentRss>http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/feed/</wfw:commentRss>
		<slash:comments>115</slash:comments>
		</item>
		<item>
		<title>青花瓷 java版</title>
		<link>http://www.codigg.com/2009/12/qinghuaci-java/</link>
		<comments>http://www.codigg.com/2009/12/qinghuaci-java/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 17:00:05 +0000</pubDate>
		<dc:creator>Codigg</dc:creator>
				<category><![CDATA[JAVA]]></category>
		<category><![CDATA[青花瓷]]></category>

		<guid isPermaLink="false">http://www.codigg.com/?p=566</guid>
		<description><![CDATA[“青花瓷Java版”为北京师范大学教育学部蔡苏作词原创，覆盖教育技术学院专业选修课《面向对象程序设计》教学大纲中的所有知识点。感谢周杰伦作曲，伊格格演唱，崔振锋和洪子叶制作。enjoy it。

&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;

青花瓷（Java版）

词：蔡苏

曲：周杰伦

<span class="readmore"><a href="http://www.codigg.com/2009/12/qinghuaci-java/" title="青花瓷 java版">阅读全文——共590字</a></span><h3>相关文章</h3><ul><li><a href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/" title="Java程序内存分析:JMap与Eclipse Memory Analyzer 2010.07.27">Java程序内存分析:JMap与Eclipse Memory Analyzer</a>(10)</li>
<li><a href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/" title="lighttpd不支持Expect: 100-continue的解决办法 2010.04.13">lighttpd不支持Expect: 100-continue的解决办法</a>(67)</li>
<li><a href="http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/" title="php版的AES算法（可与java兼容） 2010.01.21">php版的AES算法（可与java兼容）</a>(115)</li>
<li><a href="http://www.codigg.com/2009/08/java-exception-code-method/" title="你的java代码够土吗？ 2009.08.10">你的java代码够土吗？</a>(56)</li>
</ul><h3>最近评论</h3><ul><li><a class="commentor" href="http://djstools.com/cerca/impact-twin" >impact twin</a> : <a class="comment_content" href="http://www.codigg.com/2009/12/qinghuaci-java/#comment-213937" title="View the entire comment by impact twin" >Fantastic blog! Great!</a></li>
<li><a class="commentor" href="http://www.sohbetederiz.com/" >sohbet</a> : <a class="comment_content" href="http://www.codigg.com/2009/12/qinghuaci-java/#comment-213801" title="View the entire comment by sohbet" >Good a single web site manager good results blog s...</a></li>
<li><a class="commentor" href="http://www.iamsport.org/pg/blog/jeanboyle1128/read/1823218/prendi-carta-medical-cannabiscannabis-for-medical-use-per-ricevere-le-cure-marijuana-weed" >seeds of cannabis</a> : <a class="comment_content" href="http://www.codigg.com/2009/12/qinghuaci-java/#comment-213515" title="View the entire comment by seeds of cannabis" >Certainly there are many captivating issues throug...</a></li>
<li><a class="commentor" href="http://www.graphicbomb.com" >Paulita Boe</a> : <a class="comment_content" href="http://www.codigg.com/2009/12/qinghuaci-java/#comment-213302" title="View the entire comment by Paulita Boe" >Again and again and again I think about this diffi...</a></li>
<li><a class="commentor" href="http://darmowedzwonienie.pl" >VoipDiscount</a> : <a class="comment_content" href="http://www.codigg.com/2009/12/qinghuaci-java/#comment-213034" title="View the entire comment by VoipDiscount" >Hey there! I just wanted to ask if you ever have a...</a></li>
</ul>]]></description>
		<wfw:commentRss>http://www.codigg.com/2009/12/qinghuaci-java/feed/</wfw:commentRss>
		<slash:comments>70</slash:comments>
		</item>
		<item>
		<title>你的java代码够土吗？</title>
		<link>http://www.codigg.com/2009/08/java-exception-code-method/</link>
		<comments>http://www.codigg.com/2009/08/java-exception-code-method/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 10:47:33 +0000</pubDate>
		<dc:creator>Codigg</dc:creator>
				<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://www.codigg.com/?p=420</guid>
		<description><![CDATA[今天在水木上看到一篇文章，原来自己那么多年写的代码都是如此的圡。



?View Code JAVApublic class T&#123;

     // 这里编译时是会报错的：unreported exception

     private String s = intS&#40;&#41;;

<span class="readmore"><a href="http://www.codigg.com/2009/08/java-exception-code-method/" title="你的java代码够土吗？">阅读全文——共443字</a></span><h3>相关文章</h3><ul><li><a href="http://www.codigg.com/2010/07/java-jmap-eclipse-memory-analyzer/" title="Java程序内存分析:JMap与Eclipse Memory Analyzer 2010.07.27">Java程序内存分析:JMap与Eclipse Memory Analyzer</a>(10)</li>
<li><a href="http://www.codigg.com/2010/04/lighttpd-expect-100-417-continue/" title="lighttpd不支持Expect: 100-continue的解决办法 2010.04.13">lighttpd不支持Expect: 100-continue的解决办法</a>(67)</li>
<li><a href="http://www.codigg.com/2010/01/php-aes-java-encrypt-decrypt/" title="php版的AES算法（可与java兼容） 2010.01.21">php版的AES算法（可与java兼容）</a>(115)</li>
<li><a href="http://www.codigg.com/2009/12/qinghuaci-java/" title="青花瓷 java版 2009.12.30">青花瓷 java版</a>(70)</li>
</ul><h3>最近评论</h3><ul><li><a class="commentor" href="http://www.latinadatingcam.com/blogs/entry/Ideal-method-to-compare-credit-cards" >Roman Bentler</a> : <a class="comment_content" href="http://www.codigg.com/2009/08/java-exception-code-method/#comment-214216" title="View the entire comment by Roman Bentler" >No ought to look at other web pages now, everythin...</a></li>
<li><a class="commentor" href="http://udlvids.com/how-to-download-videos-from-dailymotion-free-and-fast/" >daily motion download</a> : <a class="comment_content" href="http://www.codigg.com/2009/08/java-exception-code-method/#comment-214052" title="View the entire comment by daily motion download" >This unique internet page truly helped with my iss...</a></li>
<li><a class="commentor" href="http://www.litigationfinancereport.com/mediawiki/index.php?title=UsuallybeHairthinningTreatmentMerchandiseDependableOrjustAnextraNotion" >Ronnie Fore</a> : <a class="comment_content" href="http://www.codigg.com/2009/08/java-exception-code-method/#comment-213894" title="View the entire comment by Ronnie Fore" >Some really   choice   articles  on this  internet...</a></li>
<li><a class="commentor" href="http://www.cmonsterbeats.com/monster-beats-solo-c-38.html" >MymnReelync</a> : <a class="comment_content" href="http://www.codigg.com/2009/08/java-exception-code-method/#comment-213435" title="View the entire comment by MymnReelync" >game play find out extra verified monster beats in...</a></li>
<li><a class="commentor" href="http://www.artslant.com/ew/groups/show/448924" >seeds of cannabis</a> : <a class="comment_content" href="http://www.codigg.com/2009/08/java-exception-code-method/#comment-213252" title="View the entire comment by seeds of cannabis" >It’s difficult to find expert people with this nic...</a></li>
</ul>]]></description>
		<wfw:commentRss>http://www.codigg.com/2009/08/java-exception-code-method/feed/</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
	</channel>
</rss>

