OutOfMemory

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

OutOfMemory

lauretamisier
Hi,

I use poi api and it's seems to need a lot of memory.
So I try to improve it with MAVEN_OPTS but I have an error :

C:\Documents and Settings\laure.tamisier\javancss>set MAVEN_OPTS="-Xmx512m -Xms512m"

C:\Documents and Settings\laure.tamisier\javancss>mvn hpi:run
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Invalid maximum heap size: -Xmx512m -Xms512m

I have you an idea for my problem ?..?

Thanks

Laure
Reply | Threaded
Open this post in threaded view
|

Re: OutOfMemory

Simon Wiest
Hi Laure,

you may try omitting the quotes, that is

   set MAVEN_OPTS=-Xmx512m -Xms512m

instead of

   set MAVEN_OPTS="-Xmx512m -Xms512m"

Cheers,
Simon.
--
lauretamisier schrieb am 21.04.2009 12:14 Uhr:

> Hi,
>
> I use poi api and it's seems to need a lot of memory.
> So I try to improve it with MAVEN_OPTS but I have an error :
>
> C:\Documents and Settings\laure.tamisier\javancss>set MAVEN_OPTS="-Xmx512m
> -Xms512m"
>
> C:\Documents and Settings\laure.tamisier\javancss>mvn hpi:run
> Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
> Invalid maximum heap size: -Xmx512m -Xms512m
>
> I have you an idea for my problem ?..?
>
> Thanks
> Laure

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: OutOfMemory

lauretamisier
In reply to this post by lauretamisier
Thanks


lauretamisier wrote
Hi,

I use poi api and it's seems to need a lot of memory.
So I try to improve it with MAVEN_OPTS but I have an error :

C:\Documents and Settings\laure.tamisier\javancss>set MAVEN_OPTS="-Xmx512m -Xms512m"

C:\Documents and Settings\laure.tamisier\javancss>mvn hpi:run
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Invalid maximum heap size: -Xmx512m -Xms512m

I have you an idea for my problem ?..?

Thanks

Laure