Query on increasing virtual memory for java heap size issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Query on increasing virtual memory for java heap size issue

Saisowjanya N
Dear All
I am facing java heap space issue.I want increase the heap size using vm arguments through maven.

When searched in internet I found a solution that says to define ${maven.projectBasedir}/.mvn/extensions.xml in our project

Could you please help on how to define the file ${maven.projectBasedir}/.mvn/extensions.xml in our project



Thanks and Regards,
N.Sai Sowjanya
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Query on increasing virtual memory for java heap size issue

Anders Hammar
Not sure about the extension.xml way, but typically you cna do this via the
MAVEN_OPTS env variable. But it depends on if you need to increase the heap
for the VM that starts maven or if it is for some forked process. There is
a similar question (with some solutions) here:
https://stackoverflow.com/questions/4066424/java-lang-outofmemoryerror-java-heap-space-in-maven

/Anders

On Tue, Jan 30, 2018 at 2:53 PM, Saisowjanya N <[hidden email]>
wrote:

> Dear All
> I am facing java heap space issue.I want increase the heap size using vm
> arguments through maven.
>
> When searched in internet I found a solution that says to define
> ${maven.projectBasedir}/.mvn/extensions.xml in our project
>
> Could you please help on how to define the file
> ${maven.projectBasedir}/.mvn/extensions.xml in our project
>
>
>
> Thanks and Regards,
> N.Sai Sowjanya
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Query on increasing virtual memory for java heap size issue

Martin Hoeller
In reply to this post by Saisowjanya N
Hi!

On 30 Jän 2018, Saisowjanya N wrote:

> Dear All
> I am facing java heap space issue.I want increase the heap size using vm arguments through maven.
>
> When searched in internet I found a solution that says to define ${maven.projectBasedir}/.mvn/extensions.xml in our project
>
> Could you please help on how to define the file ${maven.projectBasedir}/.mvn/extensions.xml in our project

You mean .mvn/jvm.config not .mvn/extensions.xml. See the documentation
here fore details:
https://maven.apache.org/docs/3.3.1/release-notes.html#JVM_and_Command_Line_Options

hth,
- martin

attachment0 (188 bytes) Download Attachment