|
From: Alexandre K. <ale...@ta...> - 2017-08-22 07:04:49
|
Hello, Thank you for your email. As you could see the Wrapper works as expected by detecting the string "java.lang.OutOfMemoryError" and restarting your application. Unfortunately, in your case, there is a kind of false-positive action triggered because of the following line: - KEY(index=8 name=REMARK type=12 [VARCHAR] length=512 unsigned=false blob=false desc=VARCHAR(512)) = java.lang.OutOfMemoryError: GC overhead limit exceeded To solve that kind of situation, you can create a filter to catch that line and do nothing. A line can be filtered only once, so the Wrapper will not apply any other filters. For example: wrapper.filter.trigger.1=KEY(index= wrapper.filter.action.1=NONE wrapper.filter.trigger.5=java.lang.OutOfMemoryError wrapper.filter.action.5=RESTART wrapper.filter.message.5=Replicator ran out of memory, restarting Now the line will be filtered by the filter #1 and your application will not restart. I hope this will help you solve your issue. Please let me know if you have any other questions. Regards, Alexandre Klein Alexandre Klein Tanuki Software, Ltd. 6-18-10-4F Nishi-Kasai, Edogawa-ku Tokyo 134-0088 Japan Tel: +81-3-3878-3211 Fax: +81-3-3878-0313 http://www.tanukisoftware.com On Fri, Aug 18, 2017 at 6:29 PM, yeasxy <ye...@ye...> wrote: > Hello: > I encountered a problem when used the java service wrapper , I hope you > can help me, thank you very much. > Service wrapper is used by Tungsten Replicator ,a MYSQL replication > engine. At wrapper.conf, I set up JVM to restart in case of > "java.lang.OutOfMemoryError". But when the SQL column contains the field > "java.lang.OutOfMemoryError", the Java Service Wrapper will *captures it > and think it's an exception, and restart JVM*. > It make me vary upset because I don't know how to resolve it. So could > you help me to have a check? > > Here is some information with my environment: > *Wrapper Version* :Java Service Wrapper Community Edition 64-bit 3.5.17 > *The OS and version*: 36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 > x86_64 x86_64 x86_64 GNU/Linux > *wrapper.conf* : Please check the attachment > *wrapper.log file* : Please check the attachment > > Forgive my poor English > > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |