Share

Saturday, October 31, 2015

Find the installed Java version whether 32 bit (or) 64 bit and Heap size restrictions between both versions.


How to find the installed JVM version is 64 bit (or) 32 bit

Execute the below command. If you get the error message like below. you are running 64 bit version

This Java instance does not support a 64-bit JVM. Please install the desired version.





This is how you can ensure 32 bit JVM




What is the maximum heap size I can set for 64 bit & 32 bit

-According to Oracle


The maximum theoretical heap limit for the 32-bit JVM is 4G. Due to various additional constraints such as available swap, kernel address space usage, memory fragmentation, and VM overhead, in practice the limit can be much lower. On most modern 32-bit Windows systems the maximum heap size will range from 1.4G to 1.6G. On 32-bit Solaris kernels the address space is limited to 2G. On 64-bit operating systems running the 32-bit VM, the max heap size can be higher, approaching 4G on many Solaris systems.

 Refer here for more:








Create PDF quickly just with browser. Replace your notepad with your browser


When there is urgent requirement to make a note of  something important..  We used to rush to desktop (or) Run prompt to get the notepad app..

There is an easy and simplest way to do this just with browser. Replace your notepad now.

Additionally, You can save your notes as PDF too.  Say bye to old .txt files and save your notes as PDF.

Here you go..

Open the browser  ( I have taken chrome here )

Set the font (optional)
 
Generally Browsers will be coming with their default  fonts. If you want to change it.

Before exploring it change the default font of  your browser.

In firefox:  it will be under options/content section as shown below.
in chrome:  Goto Settings-> Advanced Settings  ->Customize fonts







Open a new tab and copy/type the below lines in address bar (as it is)

data:text/html, <html contenteditable>


 

Now start typing..



In most cases we are not really saving the notepad documents. if you would like to save..

here is the way.

you should be having the print pdf addon.  it comes as builtin with modern browsers but if you don't have it get the add-on and install..

for firefox: it can be downloaded here.
in chrome:  Its built in !! 

Now Just "CTRL+p" and save as PDF  thats it!!!...

 
Here is your document in PDF.. Have fun :)






follow us at  https://www.facebook.com/middlewareinventory/


Comments welcome !!.