Thank you Vincenzo,  the below worked   ;-)

On Jan 18, 2015, at 12:18 PM, Vincenzo D'Amore <[email protected]> wrote:

> Hi,
> 
> if you want modify jvm memory settings during the execution of maven
> goal tomee:run  you should change tomee-maven-plugin configuration:
> 
> <configuration>
>    <args>-Xms64m -Xmx256m</args>
> </configuration>
> 
> Take a look at the documentation here:
> http://tomee.apache.org/maven/index.html
> 
> 
> On Sat, Jan 17, 2015 at 5:39 AM, Ihsan Ecemis <[email protected]> wrote:
> 
>> 
>> Hello,
>> 
>> I am having problems with setting Xms/Xmx values for Tomcat. Here is my
>> setup:
>> 
>> - Attached file is located at src/main/tomee/bin/setenv.sh
>> - I start Tomcat with the following command:  "mvn -Dmaven.test.skip=true
>> clean package tomee:build tomee:run”
>> 
>> When I check the running process with “ps auwx”,  I see that "-Xms256m
>> -Xmx768m” is not there, and the server can allocate more memory than I
>> specify.
>> 
>> BTW, I see that setenv.sh file is copied to
>> target/apache-tomee/bin/setenv.sh without any problems.
>> 
>> And if I do :
>> 
>> #  cd target/apache-tomee/
>> #  ./bin/catalina.sh run
>> 
>> The server starts running with the "-Xms256m -Xmx768m” setting and doesn’t
>> allocate more memory.
>> 
>> Any help is greatly appreciated.
>> 
>> Thanks,
>> 
>> Ihsan.
>> 
>> 
>> 

Reply via email to