<?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>My Technical Notes &#187; Java</title>
	<atom:link href="http://hariprasad.info/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://hariprasad.info</link>
	<description></description>
	<lastBuildDate>Sun, 05 Feb 2012 11:14:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	
<!-- Excerpts generated using Auto Excerpt plugin, http://mr.hokya.com/auto-excerpt/ -->
	<item>
		<title>Java Keytool commands</title>
		<link>http://hariprasad.info/java-keytool-commands/</link>
		<comments>http://hariprasad.info/java-keytool-commands/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 01:49:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://hariprasad.info/?p=242</guid>
		<description><![CDATA[Java Keytool Commands for Creating and Importing
These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. Any root or intermediate certificates will need to be imported before importing the primary certificate for your domain.
Generate a Java keystore and key pair
keytool -genkey -alias mydomain -keyalg RSA -keystore keystore.jks -keysize 2048
Generate a certific <a href='http://hariprasad.info/java-keytool-commands/'>Read More&#8230;</a>]]></description>
			<content:encoded><![CDATA[Java Keytool Commands for Creating and Importing
These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. Any root or intermediate certificates will need to be imported before importing the primary certificate for your domain.
Generate a Java keystore and key pair
keytool -genkey -alias mydomain -keyalg RSA -keystore keystore.jks -keysize 2048
Generate a certific <a href='http://hariprasad.info/java-keytool-commands/'>Read More</a>]]></content:encoded>
			<wfw:commentRss>http://hariprasad.info/java-keytool-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	
<!-- Excerpts generated using Auto Excerpt plugin, http://mr.hokya.com/auto-excerpt/ -->
	<item>
		<title>Default JRE for browsers</title>
		<link>http://hariprasad.info/default-jre-for-browsers/</link>
		<comments>http://hariprasad.info/default-jre-for-browsers/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 03:56:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://hariprasad.info/?p=240</guid>
		<description><![CDATA[To change the default JRE for browsers:
To switch to jre 1.5.x
1. Go to the C:\Program Files\Java\j2re1.5.x_xx\bin directory where JRE 1.5.x was installed.
2. Double-click the jpicpl32.exe file. It will launch the control panel for 1.5.x
3. Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked).
4. Uncheck that and click Apply.
5. Again select that chekbox and click Apply.
6. Res <a href='http://hariprasad.info/default-jre-for-browsers/'>Read More&#8230;</a>]]></description>
			<content:encoded><![CDATA[To change the default JRE for browsers:
To switch to jre 1.5.x
1. Go to the C:\Program Files\Java\j2re1.5.x_xx\bin directory where JRE 1.5.x was installed.
2. Double-click the jpicpl32.exe file. It will launch the control panel for 1.5.x
3. Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked).
4. Uncheck that and click Apply.
5. Again select that chekbox and click Apply.
6. Res <a href='http://hariprasad.info/default-jre-for-browsers/'>Read More</a>]]></content:encoded>
			<wfw:commentRss>http://hariprasad.info/default-jre-for-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	
<!-- Excerpts generated using Auto Excerpt plugin, http://mr.hokya.com/auto-excerpt/ -->
	<item>
		<title>Retrieving JVM Settings through code</title>
		<link>http://hariprasad.info/retrieving-jvm-settings-through-code/</link>
		<comments>http://hariprasad.info/retrieving-jvm-settings-through-code/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 02:47:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JVM Memory]]></category>

		<guid isPermaLink="false">http://hariprasad.info/?p=165</guid>
		<description><![CDATA[The following code retrieves Free Memory, Total Memory, Max Memory allocated to JVM
Runtime runtime = Runtime.getRuntime();
System.out.println(&#8220;max memory: &#8221; + runtime.maxMemory() / (1024.0*1024.0));
System.out.println(&#8220;allocated memory: &#8221; + runtime.totalMemory() / 1024);
System.out.println(&#8220;free memory: &#8221; + runtime.freeMemory() / 1024);  
 <a href='http://hariprasad.info/retrieving-jvm-settings-through-code/'>Read More&#8230;</a>]]></description>
			<content:encoded><![CDATA[The following code retrieves Free Memory, Total Memory, Max Memory allocated to JVM
Runtime runtime = Runtime.getRuntime();
System.out.println(&#8220;max memory: &#8221; + runtime.maxMemory() / (1024.0*1024.0));
System.out.println(&#8220;allocated memory: &#8221; + runtime.totalMemory() / 1024);
System.out.println(&#8220;free memory: &#8221; + runtime.freeMemory() / 1024);  
 <a href='http://hariprasad.info/retrieving-jvm-settings-through-code/'>Read More</a>]]></content:encoded>
			<wfw:commentRss>http://hariprasad.info/retrieving-jvm-settings-through-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	
<!-- Excerpts generated using Auto Excerpt plugin, http://mr.hokya.com/auto-excerpt/ -->
	<item>
		<title>Java Code Conventions</title>
		<link>http://hariprasad.info/java-code-conventions/</link>
		<comments>http://hariprasad.info/java-code-conventions/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 04:58:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[code conventions]]></category>

		<guid isPermaLink="false">http://hariprasad.info/java-code-conventions/</guid>
		<description><![CDATA[CodeConventions
 <a href='http://hariprasad.info/java-code-conventions/'>Read More&#8230;</a>]]></description>
			<content:encoded><![CDATA[CodeConventions
 <a href='http://hariprasad.info/java-code-conventions/'>Read More</a>]]></content:encoded>
			<wfw:commentRss>http://hariprasad.info/java-code-conventions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	
<!-- Excerpts generated using Auto Excerpt plugin, http://mr.hokya.com/auto-excerpt/ -->
	<item>
		<title>Setting java heap size</title>
		<link>http://hariprasad.info/setting-java-heap-size/</link>
		<comments>http://hariprasad.info/setting-java-heap-size/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 04:07:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://hariprasad.info/?p=105</guid>
		<description><![CDATA[Tomcat
Stop Tomcat server, set environment variable CATALINA_OPTS, and then restart Tomcat.  For example,
set CATALINA_OPTS=-Xms512m -Xmx512m  (Windows, no "" around the value)

JBoss
Stop JBoss server, edit $JBOSS_HOME/bin/run.conf, and then restart JBoss server.
JAVA_OPTS="-server -Xms128m -Xmx128m"

Eclipse
You have 2 options:
1. Edit eclipse-home/eclipse.ini to be something like the following and restart Ecl <a href='http://hariprasad.info/setting-java-heap-size/'>Read More&#8230;</a>]]></description>
			<content:encoded><![CDATA[Tomcat
Stop Tomcat server, set environment variable CATALINA_OPTS, and then restart Tomcat.  For example,
set CATALINA_OPTS=-Xms512m -Xmx512m  (Windows, no "" around the value)

JBoss
Stop JBoss server, edit $JBOSS_HOME/bin/run.conf, and then restart JBoss server.
JAVA_OPTS="-server -Xms128m -Xmx128m"

Eclipse
You have 2 options:
1. Edit eclipse-home/eclipse.ini to be something like the following and restart Ecl <a href='http://hariprasad.info/setting-java-heap-size/'>Read More</a>]]></content:encoded>
			<wfw:commentRss>http://hariprasad.info/setting-java-heap-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

