Hi Rainer,

We never face this issue with tomcat 8.5.32 and from 8.5.33 it will causing the 
issue and it happen on both OS Window and Linux, it will be blocking for us 
because we are not able to update tomcat to latest on and it had some security 
issue fixed in it, please let me know how should I proceed from here.

Thanks and Regards,
Rajendra Rathore
9922701491

-----Original Message-----
From: Rainer Jung <rainer.j...@kippdata.de> 
Sent: 02 November 2018 03:50 PM
To: Tomcat Users List <users@tomcat.apache.org>; Rathore, Rajendra 
<rarath...@ptc.com>
Subject: Re: precompile JSPs failure issue - Tomcat community

Am 02.11.2018 um 10:57 schrieb Rathore, Rajendra:
> Hi Mark,
> 
> I tried with tomcat 8.5.33 and face the same issue, I logged a bug 
> also
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbz.ap
> ache.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D62879&amp;data=02%7C01%7Crar
> athore%40ptc.com%7C80d42185b225483c061508d640accfbb%7Cb9921086ff774d0d
> 828acb3381f678e2%7C0%7C0%7C636767508304565081&amp;sdata=FGguJAuq0y%2Ft
> TMNTsd%2Fezc6yTbuOD5wxzlNWdYs8wFI%3D&amp;reserved=0
> 
> Please let me know how should I proceed here?
> 
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
> 
> -----Original Message-----
> From: Rathore, Rajendra <rarath...@ptc.com>
> Sent: 01 November 2018 06:10 PM
> To: Tomcat Users List <users@tomcat.apache.org>
> Subject: RE: precompile JSPs failure issue - Tomcat community
> 
> Hi Chao,
> 
> We already tried it and it still failing.
> 
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
> 
> -----Original Message-----
> From: Guang Chao <guang.chao.1...@gmail.com>
> Sent: 01 November 2018 06:07 PM
> To: Tomcat Users List <users@tomcat.apache.org>
> Subject: Re: precompile JSPs failure issue - Tomcat community
> 
> On Thu, Nov 1, 2018 at 7:13 PM Rathore, Rajendra <rarath...@ptc.com> wrote:
> 
>> Hi Mark,
>>
>> I am suspecting the same in 8.5.33 tomcat, do you still won't me to 
>> check it on tomcat 8.5.33?
>>
> 
> How about increasing your perm memory?
> 
> 
>>
>> Thanks and Regards,
>> Rajendra Rathore
>> 9922701491
>>
>> -----Original Message-----
>> From: Guang Chao <guang.chao.1...@gmail.com>
>> Sent: 01 November 2018 03:41 PM
>> To: Tomcat Users List <users@tomcat.apache.org>
>> Subject: Re: precompile JSPs failure issue - Tomcat community
>>
>> On Thu, Nov 1, 2018 at 5:33 PM Mark Thomas <ma...@apache.org> wrote:
>>
>>> On 01/11/2018 09:21, Rathore, Rajendra wrote:
>>>> Hi Team,
>>>>
>>>>
>>>>
>>>> We have precompileJSPs tests that include compilation of around
>>>> 4000 jsp files. After upgrading to Tomcat *8.5.34* from Tomcat
>>>> *8.5.32* we are facing an *Error:*/java.lang.OutOfMemoryError:
>>>> unable to create new native thread /
>>>>
>>>>
>>>>
>>>> The machines on which tests were executed have *16GB* of RAM, out 
>>>> of which around *13GB* was free.
>>>>
>>>> The precompileJSPs tests were executed on Tomcat *8.5.34* by 
>>>> setting ANT_OPTS from -Xmx4096m to -Xmx10240m, But Still the result 
>>>> was /OutOfMemoryError./
>>>>
>>>> / /
>>>>
>>>> However, We successfully tested precompileJSPs tests for Tomcat
>>>> *8.5.32 *with ANT_OPTS as -Xmx384m
>>>>
>>>>
>>>>
>>>> Can someone please have a look into this issue?
>>>
>>> Have you looked at the change log for the changes between 8.5.32 and
>>> 8.5.34 that might be relevant?
>>>
>>
>> It could be changelog in 8.5.33
>>
>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbz.a
>> p 
>> ache.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D53011&amp;data=02%7C01%7Cra
>> r 
>> athore%40ptc.com%7Cc0bce30fc877421ebd6808d63ff6f1f2%7Cb9921086ff774d0
>> d 
>> 828acb3381f678e2%7C0%7C0%7C636766727188877636&amp;sdata=diEmx1WNaWPvH
>> %
>> 2FGMd8Ex%2B4AgZCaGxcC6fez5UD%2FEF1c%3D&amp;reserved=0
>>
>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbz.a
>> p 
>> ache.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D53492&amp;data=02%7C01%7Cra
>> r 
>> athore%40ptc.com%7Cc0bce30fc877421ebd6808d63ff6f1f2%7Cb9921086ff774d0
>> d 
>> 828acb3381f678e2%7C0%7C0%7C636766727188877636&amp;sdata=rl1N7m5upe4E7
>> A
>> 3zTAx4oht2cjUHfuDoNCWoOHKfkrs%3D&amp;reserved=0
>>
>>
>>
>>>
>>> Have you tried testing with 8.5.33 to narrow down the version in 
>>> which the issue first appears?
>>>
>>> Mark
>>>
>>> --------------------------------------------------------------------
>>> - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>
>> --
>> Guang <
>> https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fjavad
>> e 
>> vnotes.com%2Fjava-string-to-date&amp;data=02%7C01%7Crarathore%40ptc.c
>> o 
>> m%7Cc0bce30fc877421ebd6808d63ff6f1f2%7Cb9921086ff774d0d828acb3381f678
>> e 
>> 2%7C0%7C0%7C636766727188877636&amp;sdata=lEQmu2kFIquRsA5rAeVw17HYosy6
>> O
>> 03GGZvt6d6CWCA%3D&amp;reserved=0
>>>
>>
> 
> 
> --
> Guang 
> <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fjavad
> evnotes.com%2Fjava-string-compare&amp;data=02%7C01%7Crarathore%40ptc.c
> om%7C80d42185b225483c061508d640accfbb%7Cb9921086ff774d0d828acb3381f678
> e2%7C0%7C0%7C636767508304565081&amp;sdata=Cx%2BDIalffZ3EcaSb7oPQVPx5sl
> JFqdnMg8r2A10E6M8%3D&amp;reserved=0>
> B KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB  
> [  X  ܚX KK[XZ[
>   \ \  ][  X  ܚX P X ]
>   \X K ܙ B  ܈Y][ۘ[  [X[  K[XZ[
>   \ \  Z[ X ]
>   \X K ܙ B

You can control the number of threads using -threadCount. By default the number 
is equals to the number of cores the operating system show to the JVM. You 
might want to use a smaller number to see whether that helps.

I suggest you also check your Linux system limits on processes per user. 
That system limit on Linux in fact limits threads per user. So if such a limit 
is set and your user has other processes with many threads running, you might 
need to increase this limit.

In addition you can run your ant process with

strace -f -o /var/tmp/strace.out HERE_COMES_YOUR_ANT_COMMAND &

Then after you get the error, you can check the strace.out file for system call 
errors. The file will be big, but most probably the error is relatively close 
to the end.

Regards,

Rainer

Reply via email to