Saturday, 23 August 2014

Heap Memory Vs Stack Memory

Heap memory:
What-   it is used by jvm to store all the objects created in a project.
Heap memory is divided into three generations-young , old, permanent area of heap
First object gets created in young gen space after it gets referenced to null it moves to old gen space
Permanent area of space is used to store meta data related to classes and methods.
If there is no memory JVM will through Java. lang.outofmemoryerror
There are two types of out of memory errors
1. lang.outofmemoryerror.heap memory
2. lang.outofmemoryerror.perm generation
To increase the heap memory by the JVM options as shown below
Xms   <start size>   xmx <Max size>
Permanent gen memory error can be caused if we have too many classes or huge number of strings in the project
It is also called due to memory leaks through class loaders in application servers
Different
Permanent area of space can be increased by below JVM options
Xx:permsize and xx:maxpermsize

Stack memory:
It is small block of memory used by JVM to store function classes and local variables.
Each thread will have their own stack memory which can be specified using -xss JVM option.


Friday, 22 August 2014

Earn Money Online

Click the link below:
http://www.get-paid.com/index.php?ref=mahesh007

Get paid is a reliable website for Earning money(in dollars,for 500 coins = 1$) online through simple tasks,completing offers,watching videos,completing surveys,playing and challenging Games.....

To get money credited into your accounts you need :

1. PayPal or Payza or We money Account
  a. For creating PayPal account you need bank account to be associated with paypal account

2. You just need to enter only email id associated with PayPal in this website which serves as
     account number.(no need to give any bank details in this website,bank details goes with PayPal
     so it is secure)

(Note: whatever the country you are in, the dollars will be converted to your bank account currency,it is done by PayPal automatically)