As far as I know, webservices cannot be allocated separate heap spaces
this way.
This is webservers heap space and will be shared by all programs
running in that webserver.
In order to provide separate heap spaces to your webservices (though I
can't imagine why you'd want to do that) - you will have to run them
in two separate instances of webservers and manage the requests via a
reverse proxy like nginx running in front of both webservers.
Rgds,
A
On Apr 27, 7:13 am, shweta sharma <
shweta...@gmail.com> wrote:
> If a webserver is running given JVM arg as
>
> * java **-d64 -Xms2g -Xmx80g mywebserver
>
> * and 2 webservices are deployed in it . will webservices have
> separate heap space ? or will use webserver's heap ?
>
> in order to allocate separate heap space to webservices does one
> require to provide JVM args -Xms -Xmx to webservices explicitly ?
>
> Thanks
> Shweta
>
> *
> *
>
>
>
>
>
>
>
> On Thu, Apr 26, 2012 at 3:55 PM, shweta sharma <
shweta...@gmail.com> wrote:
> > Thanks much to All.
>
> > Best Regards
> > Shweta
>
> > On Thu, Apr 26, 2012 at 1:37 PM, Yaswanth Ravella <
m...@yaswanth.org>wrote:
>
> >> can i give full RAM size in JVM args to crease heap of size that is
> >>> equal to RAM size ?
>
> >>> like >> * java **-d64 -Xms2g -Xmx80g MyApp*
>
> >>> The above JVM args does not create a process with 80g heap. It only
> >> creates a process with 2g of Heap and will only grow till 80g if required
> >> and if RAM is available.
>
> >> in that case will RAM be still available for other programs running on system ?
>
> >>> Depends. lets say if your current java heap usage has grown to 10-20 gb
> >> + few more gigabytes usage by native java process, you will still have
> >> space to run other programs right ?
>
> >> by giving arg* **Xmx80g *am i requesting JVM to create that much size of heap space or forcing JVM to create heap of that size ?.
> >> On Thu, Apr 26, 2012 at 12:02 PM, shweta sharma <
shweta...@gmail.com>wrote:
>
> >>> can i give full RAM size in JVM args to crease heap of size that is
> >>> equal to RAM size ?
>
> >>> like >> * java **-d64 -Xms2g -Xmx80g MyApp*
>
> >>> in that case will RAM be still available for other programs running on system ?
>
> >>> by giving arg* **Xmx80g *am i requesting JVM to create that much size of heap space or forcing JVM to create heap of that size ?.
>
> >>> I read that bigger the heap slower (after a threshold value ) will be performance because it will make GC to be a hazardous task to run.
>
> >>> Any input on this will help .
>
> >>> Best Regards
> >>> Shweta
>
> >>> On Wed, Apr 25, 2012 at 6:44 PM, shweta sharma <
shweta...@gmail.com>wrote:
>
> >>>> >> I have read that on running a 32 bit JVM on 32 bit OS ( windows )
> >>>> creates max of ~2.2GB size heap while same on 32 bit OS (Linux) creates
> >>>> heap of size ~ *3 . 2 GB* ( but it wont go beyond 4GB in any case) .