|
From: Leif M. <le...@ta...> - 2008-05-16 02:02:47
|
Sushil, I think you meant to post this to the mailing list. I can think of several things that could be happening to cause the Wrapper to restart but I would be guessing without seeing the log file. Could you please set the wrapper.debug=true property in your wrapper.conf file. Then rerun your application. Post back with the contents of the log file as an attachment. Only send the log file about 5 minutes before the restart to just after the new JVM has come up. I should then be able to tell you exactly what is happening. A couple questions at the same time though. Your max memory is set to 512MB. What is the total amount of physical memory on that system. Java behaves very poorly if the the JVM's memory is forced to disk swap even slightly. It is important to make sure that you always have enough free memory to support all of the JVM's memory. I have seen cases where the JVM will freeze for up to 5 minutes and run at at least 1/1000 normal speed because of disc swapping. Cheers, Leif Sushil Dodake wrote: > > I am using JAVA service Wrapper + Spring in my application. > This application is a batch job which basically calls other > applcations at regular intervals. > i start this batch using the install.bat file and stop it using > uninstall.bat file. > it is deployed as windows service. > The other applications are AXIS2 1.3 webservices. > The batch application is set in the JAVA 6 environament. > > when this batch job calls a webservice A the service returns a XML > (very large in size) which is then massaged by the batch application > and then sent back to another service say B(XML very large in size) . > the service B then finishes its process and ther returns back to the > batch which eventually updates the status of process in DB > If the above process continues for 2 or 3 hours then the batch job > suddenly gets reset/reload. > this behaviour is very unpredictable some times it happens after 2/3 > hrs some times 4 hrs... once the XML is received it generally restarts > before massaging and sending the XML to service B and as this reloads > the stuff the current running process is suspended in between and is > never completed. > > and Spring reloads application context which is very strange behavious > i guess the JVM restarts. > i could see same log messags which appeared @ the application start. > In my conf file i havnt set any restart parameters. > also it seems ther is no eror message in the log file which must have > caused the restart. > my configuration file looks as below. > i am new to this any help in this is appreciated > > #******************************************************************** > > # TestWrapper Properties > > # > > # NOTE - Please use src/conf/wrapper.conf.in <http://wrapper.conf.in/> > as a template for your > > # own application rather than the values used for the > > # TestWrapper sample. > > #******************************************************************** > > # Java Application > > wrapper.java.command=java > > > # Java Main class. This class must implement the WrapperListener interface > > # or guarantee that the WrapperManager class is initialized. Helper > > # classes are provided to do this for you. See the Integration section > > # of the documentation for details. > > wrapper.java.mainclass=com.toro.rebateautomation.RebateAutomation > > > # Java Classpath (include wrapper.jar) Add class path elements as > > # needed starting from 1 > > wrapper.java.classpath.1=../lib/wrapper.jar > > wrapper.java.classpath.2=../lib/*.* > > wrapper.java.classpath.3=../conf/*.* > > > > > > > # Java Library Path (location of Wrapper.DLL or libwrapper.so) > > wrapper.java.library.path.1=../lib > > > # Java Additional Parameters > > #wrapper.java.additional.1= > > > # Initial Java Heap Size (in MB) > > wrapper.java.initmemory=256 > > > # Maximum Java Heap Size (in MB) > > wrapper.java.maxmemory=512 > > > # Application parameters. Add parameters as needed starting from 1 > > #wrapper.app.parameter.1= > > > #******************************************************************** > > # Wrapper Logging Properties > > #******************************************************************** > > # Format of output for the console. (See docs for formats) > > wrapper.console.format=PM > > > # Log Level for console output. (See docs for log levels) > > wrapper.console.loglevel=INFO > > > # Log file to use for wrapper output logging. > > wrapper.logfile=../logs/wrapper.log > > > # Format of output for the log file. (See docs for formats) > > wrapper.logfile.format=LPTM > > > # Log Level for log file output. (See docs for log levels) > > wrapper.logfile.loglevel=NONE > > > # Maximum size that the log file will be allowed to grow to before > > # the log is rolled. Size is specified in bytes. The default value > > # of 0, disables log rolling. May abbreviate with the 'k' (kb) or > > # 'm' (mb) suffix. For example: 10m = 10 megabytes. > > wrapper.logfile.maxsize=0 > > > # Maximum number of rolled log files which will be allowed before old > > # files are deleted. The default value of 0 implies no limit. > > wrapper.logfile.maxfiles=0 > > > # Log Level for sys/event log output. (See docs for log levels) > > wrapper.syslog.loglevel=NONE > > > #******************************************************************** > > # Wrapper Windows Properties > > #******************************************************************** > > # Title to use when running as a console > > wrapper.console.title=Rebate Automation > > > #******************************************************************** > > # Wrapper Windows NT/2000/XP Service Properties > > #******************************************************************** > > # WARNING - Do not modify any of these properties when an application > > # using this configuration file has been installed as a service. > > # Please uninstall the service before modifying this section. The > > # service can then be reinstalled. > > > # Name of the service > > wrapper.ntservice.name <http://wrapper.ntservice.name/>=Rebate Automation > > > # Display name of the service > > wrapper.ntservice.displayname=Rebate Automation > > > # Description of the service > > wrapper.ntservice.description=Rebate Automation > > > # Service dependencies. Add dependencies as needed starting from 1 > > wrapper.ntservice.dependency.1= > > > # Mode in which the service is installed. AUTO_START or DEMAND_START > > wrapper.ntservice.starttype=AUTO_START > > > # Allow the service to interact with the desktop. > > wrapper.ntservice.interactive=false > > > > > |
|
From: Sushil D. <sus...@gm...> - 2008-05-16 16:09:51
|
2008-05-15 04:14:05,888 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "</InsertDate></Line><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">1</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0001</LineNumber><OrderItem><ItemIds><Id>99-8352</Id></ItemIds></OrderItem><OrderQuantity uom="EA">1</OrderQuantity><UnitPrice currency="USD">70.7</UnitPrice><ExtendedPrice currency="USD">37.03</ExtendedPrice><TotalAmount currency="USD">70.7</TotalAmount><InsertDate>2008-05-12T23:59:29.000-05:00</InsertDate></Line></Invoice></tns:InvoiceXML><tns:InvoiceXML><?xml version="1.0" encoding="UTF-8"?>[\n]" 2008-05-15 04:14:05,888 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "<Invoice><Header><DocumentIds><DocumentId><Id>01200711-00</Id></DocumentId></DocumentIds><DocumentDateTime>2008-05-12T14:00:00.000-05:00</DocumentDateTime><SalesOrderDate>2008-05-12T00:00:00.000-05:00</SalesOrderDate><InsertDate>2008-05-12T23:59:31.000-05:00</InsertDate><BODId>NOTRANS</BODId><InvoiceSeqId>24968600</InvoiceSeqId><InvoiceType>SAL</InvoiceType><TaxWithholdingExempt>N</TaxWithholdingExempt><PaymentTerms><PaymentMethod>NOTRANS</PaymentMethod><Description lang="EN-US">NET 30 DAYS</Description><DueDate>2008-06-11T00:00:00.000-05:00</DueDate></PaymentTerms><Parties><SupplierParty><PartyId><Id>000455</Id></PartyId><Name lang="EN">REINDERS, INC.</Name><Addresses><Address><AddressLine1>13400 WATERTOWN PLANK ROAD</AddressLine1><AddressLine2>NOTRANS</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>ELM GROVE</City><StateorProvince>WI</StateorProvince><Country>US</Country><PostalCode>53122-0825</PostalCode><Telephone1>1 262-786-3305</Telephone1></Address></Addresses></SupplierParty><BillToParty><PartyId><Id>46228</Id></PartyId><Name lang="EN-US">TUCKAWAY COUNTRY CLUB</Name><Addresses><Address><AddressLine1>NOTRANS</AddressLine1><AddressLine2>6901 W. DREXEL AVE.</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>FRANKLIN</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53132</PostalCode><Telephone1>(414)425-4280</Telephone1></Address></Addresses></BillToParty><SoldToParty><PartyId><Id>46228</Id></PartyId><Name lang="EN-US">TUCKAWAY COUNTRY CLUB</Name><Addresses><Address><AddressLine1>NOTRANS</AddressLine1><AddressLine2>6901 W. DREXEL AVE.</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>FRANKLIN</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53132</PostalCode><Telephone1>(414)425-4280</Telephone1></Address></Addresses></SoldToParty><ShipToParty><PartyId><Id>68TH ST.</Id></PartyId><Name lang="EN-US">TUCKAWAY COUNTRY CLUB</Name><Addresses><Address><AddressLine1>MR. JIM POITZ, G.C. SUPT.</AddressLine1><AddressLine2>8221 S. 68TH ST.</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>FRANKLIN</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53132</PostalCode><Telephone1>NOTRANS</Telephone1></Address></Addresses></ShipToParty></Parties><TotalCharges currency="USD">0.0</TotalCharges><TotalTax currency="USD">15.67</TotalTax><ExtendedPrice currency="USD">267.48</ExtendedPrice><TotalAmount currency="USD">295.53</TotalAmount></Header><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">36</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0001</LineNumber><OrderItem><ItemIds><Id>108-9247" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "</Id></ItemIds></OrderItem><OrderQuantity uom="EA">36</OrderQuantity><UnitPrice currency="USD">7.43</UnitPrice><ExtendedPrice currency="USD">200.52</ExtendedPrice>&l" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\r]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "2" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "0" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "0" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "0" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\r]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "t;TotalAmount currency="USD">267.48</TotalAmount><InsertDate>2008-05-12T23:59:31.000-05:00</InsertDate></Line></Invoice></tns:InvoiceXML><tns:InvoiceXML><?xml version="1.0" encoding="UTF-8"?>[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "<Invoice><Header><DocumentIds><DocumentId><Id>01200715-00</Id></DocumentId></DocumentIds><DocumentDateTime>2008-05-12T14:00:00.000-05:00</DocumentDateTime><SalesOrderDate>2008-05-12T00:00:00.000-05:00</SalesOrderDate><InsertDate>2008-05-12T23:59:32.000-05:00</InsertDate><BODId>NOTRANS</BODId><InvoiceSeqId>24968610</InvoiceSeqId><InvoiceType>SAL</InvoiceType><TaxWithholdingExempt>N</TaxWithholdingExempt><PaymentTerms><PaymentMethod>NOTRANS</PaymentMethod><Description lang="EN-US">NET 30 DAYS</Description><DueDate>2008-06-11T00:00:00.000-05:00</DueDate></PaymentTerms><Parties><SupplierParty><PartyId><Id>000455</Id></PartyId><Name lang="EN">REINDERS, INC.</Name><Addresses><Address><AddressLine1>13400 WATERTOWN PLANK ROAD</AddressLine1><AddressLine2>NOTRANS</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>ELM GROVE</City><StateorProvince>WI</StateorProvince><Country>US</Country><PostalCode>53122-0825</PostalCode><Telephone1>1 262-786-3305</Telephone1></Address></Addresses></SupplierParty><BillToParty><PartyId><Id>70324</Id></PartyId><Name lang="EN-US">SOUTH HILLS GOLF &amp; C.C.</Name><Addresses><Address><AddressLine1>1175 FOND DU LAC AVE.</AddressLine1><AddressLine2>P.O. BOX 1431</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>FOND DU LAC</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>54935-1431</PostalCode><Telephone1>(920)921-3636</Telephone1></Address></Addresses></BillToParty><SoldToParty><PartyId><Id>70324</Id></PartyId><Name lang="EN-US">SOUTH HILLS GOLF &amp; C.C.</Name><Addresses><Address><AddressLine1>1175 FOND DU LAC AVE.</AddressLine1><AddressLine2>P.O. BOX 1431</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>FOND DU LAC</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>54935-1431</PostalCode><Telephone1>(920)921-3636</Telephone1></Address></Addresses></SoldToParty><ShipToParty><PartyId><Id>GC MAINT</Id></PartyId><Name lang="EN-US">SOUTH HILLS GOLF &amp; COUNTRY CLB</Name><Addresses><Address><AddressLine1>MR. JIM VANHERWYNEN,G.C. SUPT.</AddressLine1><AddressLine2>1175 FOND DU LAC AVE.</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>FOND DU LAC</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>54935</PostalCode><Telephone1>NOTRANS</Telephone1></Address></Addresses></ShipToParty></Parties><TotalCharges currency="USD">0.0</TotalCharges><TotalTax currency="USD">9.1</TotalTax><ExtendedPrice currency="USD">174.3</ExtendedPrice><TotalAmount currency="USD">191.0</TotalAmount></Header><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">1</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0002</LineNumber><OrderItem><ItemIds><Id>855S-5154</Id></ItemIds></OrderItem><OrderQuantity uom="EA">1</OrderQuantity><UnitPrice currency="USD">154.0</UnitPrice><ExtendedPrice currency="USD">68.03</ExtendedPrice><TotalAmount currency="USD">107.8</TotalAmount><InsertDate>2008-05-12T23:59:32.000-05:00</InsertDate></Line><Line><Toro.Invoice.Line.UserArea><Toro.Shippe" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "dQuantity uom="EA">2</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0001</LineNumber><OrderItem><ItemIds><Id>995-83</Id></ItemIds></OrderItem><OrderQuantity uom="EA">2</OrderQuantity><UnitPrice currency="USD">12.0</UnitPrice><ExtendedPrice currency="USD">11.27</ExtendedPrice><TotalAmount currency="USD">24.0</TotalAmount><InsertDate>2008-05-12T23:59:32.000-05:00</InsertDate></Line><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">25</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0003</LineNumber><OrderItem><ItemIds><Id>363-4103</Id></ItemIds></OrderItem><OrderQuantity uom="EA">25</OrderQuantity><UnitPrice currency="USD">1.7</UnitPrice><ExtendedPrice currency="USD">21.24</ExtendedPrice><TotalAmount currency="USD">42.5</TotalAmount><InsertDate>2008-05-12T23:59:32.000-05:00</InsertDate></Line></Invoice></tns:InvoiceXML><tns:InvoiceXML><?xml version="1.0" encoding="UTF-8"?>[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "<Invoice><Header><DocumentIds><DocumentId><Id>01200716-00</Id></DocumentId></DocumentIds><DocumentDateTime>2008-05-12T14:00:00.000-05:00</DocumentDateTime><SalesOrderDate>2008-05-12T00:00:00.000-05:00</SalesOrderDate><InsertDate>2008-05-12T23:59:34.000-05:00</InsertDate><BODId>NOTRANS</BODId><InvoiceSeqId>24968620</InvoiceSeqId><InvoiceType>SAL</InvoiceType><TaxWithholdingExempt>N</TaxWithholdingExempt><PaymentTerms><PaymentMethod>NOTRANS</PaymentMethod><Description lang="EN-US">NET 60 DAYS</Description><DueDate>2008-07-11T00:00:00.000-05:00</DueDate></PaymentTerms><Parties><SupplierParty><PartyId><Id>000455</Id></PartyId><Name lang="EN">REINDERS, INC.</Name><Addresses><Address><AddressLine1>13400 WATERTOWN PLANK ROAD</AddressLine1><AddressLine2>NOTRANS</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>ELM GROVE</City><StateorProvince>WI</StateorProvince><Country>US</Country><PostalCode>53122-0825</PostalCode><Telephone1>1 262-786-3305</Telephone1></Address></Addresses></SupplierParty><BillToParty><PartyId><Id>70324</Id></PartyId><Name lang="EN-US">SOUTH HILLS GOLF &amp; C.C.</Name><Addresses><Address><AddressLine1>1175 FOND DU LAC AVE.</AddressLine1><AddressLine2>P.O. BOX 1431</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>FOND DU LAC</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>54935-1431</PostalCode><Telephone1>(920)921-3636</Telephone1></Address></Addresses></BillToParty><SoldToParty><PartyId><Id>70324</Id></PartyId><Name lang="EN-US">SOUTH HILLS GOLF &amp; C.C.</Name><Addresses><Address><AddressLine1>1175 FOND DU LAC AVE.</AddressLine1><AddressLine2>P.O. BOX 1431</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>FOND DU LAC</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>54935-1431</PostalCode><Telephone1>(920)921-3636</Telephone1></Address></Addresses></SoldToParty><ShipToParty><PartyId><Id>GC MAINT</Id></PartyId><Name lang="EN-US">SOUTH HILLS GOLF &amp; COUNTRY CLB</Name><Addresses><Address><AddressLine1>MR. JIM VANHERWYNEN,G.C. SUPT.</AddressLine1><AddressLine2>1175 FOND DU LAC AVE.</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>FOND DU LAC</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>54935</PostalCode><Teleph" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "one1>NOTRANS</Telephone1></Address></Addresses></ShipToParty></Parties><TotalCharges currency="USD">0.0</TotalCharges><TotalTax currency="USD">12.88</TotalTax><Ex" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\r]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "2" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "0" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "0" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "0" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\r]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "tendedPrice currency="USD">249.9</ExtendedPrice><TotalAmount currency="USD">270.55</TotalAmount></Header><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">3</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0001</LineNumber><OrderItem><ItemIds><Id>854S-5154</Id></ItemIds></OrderItem><OrderQuantity uom="EA">3</OrderQuantity><UnitPrice currency="USD">119.0</UnitPrice><ExtendedPrice currency="USD">153.33</ExtendedPrice><TotalAmount currency="USD">249.9</TotalAmount><InsertDate>2008-05-12T23:59:34.000-05:00</InsertDate></Line></Invoice></tns:InvoiceXML><tns:InvoiceXML><?xml version="1.0" encoding="UTF-8"?>[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "<Invoice><Header><DocumentIds><DocumentId><Id>01200774-00</Id></DocumentId></DocumentIds><DocumentDateTime>2008-05-12T14:00:00.000-05:00</DocumentDateTime><SalesOrderDate>2008-05-12T00:00:00.000-05:00</SalesOrderDate><InsertDate>2008-05-12T23:59:35.000-05:00</InsertDate><BODId>NOTRANS</BODId><InvoiceSeqId>24968630</InvoiceSeqId><InvoiceType>SAL</InvoiceType><TaxWithholdingExempt>N</TaxWithholdingExempt><PaymentTerms><PaymentMethod>NOTRANS</PaymentMethod><Description lang="EN-US">NET 10TH PRX</Description><DueDate>2008-06-10T00:00:00.000-05:00</DueDate></PaymentTerms><Parties><SupplierParty><PartyId><Id>000455</Id></PartyId><Name lang="EN">REINDERS, INC.</Name><Addresses><Address><AddressLine1>13400 WATERTOWN PLANK ROAD</AddressLine1><AddressLine2>NOTRANS</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>ELM GROVE</City><StateorProvince>WI</StateorProvince><Country>US</Country><PostalCode>53122-0825</PostalCode><Telephone1>1 262-786-3305</Telephone1></Address></Addresses></SupplierParty><BillToParty><PartyId><Id>113574</Id></PartyId><Name lang="EN-US">MILWAUKEE LAWN SPRINKLER CORP.</Name><Addresses><Address><AddressLine1>NOTRANS</AddressLine1><AddressLine2>N60 W16180 KOHLER LANE</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>MENOMONEE FALLS</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53051</PostalCode><Telephone1>NOTRANS</Telephone1></Address></Addresses></BillToParty><SoldToParty><PartyId><Id>113574</Id></PartyId><Name lang="EN-US">MILWAUKEE LAWN SPRINKLER CORP.</Name><Addresses><Address><AddressLine1>NOTRANS</AddressLine1><AddressLine2>N60 W16180 KOHLER LANE</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>MENOMONEE FALLS</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53051</PostalCode><Telephone1>NOTRANS</Telephone1></Address></Addresses></SoldToParty><ShipToParty><PartyId><Id>113574</Id></PartyId><Name lang="EN-US">MILWAUKEE LAWN SPRINKLER CORP.</Name><Addresses><Address><AddressLine1>NOTRANS</AddressLine1><AddressLine2>N60 W16180 KOHLER LANE</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>MENOMONEE FALLS</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53051</PostalCode><Telephone1>NOTRANS</Telephone1></Address></Addresses></ShipToParty></Parties><TotalCharges currency="USD">0.0</TotalCharges><TotalTax currency="USD">5.63</TotalTax><ExtendedPrice currency="USD">22.56</ExtendedPrice><TotalAmount currency="USD">116.09</TotalAmount></Header><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">5</Toro.ShippedQuantity></Toro." 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "Invoice.Line.UserArea><Version>1</Version><LineNumber>0002</LineNumber><OrderItem><ItemIds><Id>89-1470</Id></ItemIds></OrderItem><OrderQuantity uom="EA">5</OrderQuantity><UnitPrice currency="USD">2.09</UnitPrice><ExtendedPrice currency="USD">4.29</ExtendedPrice><TotalAmount currency="USD">5.64</TotalAmount><InsertDate>2008-05-12T23:59:35.000-05:00</InsertDate></Line><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">5</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0001</LineNumber><OrderItem><ItemIds><Id>89-1464</Id></ItemIds></OrderItem><OrderQuantity uom="EA">5</OrderQuantity><UnitPrice currency="USD">2.09</UnitPrice><ExtendedPrice currency="USD">4.28</ExtendedPrice><TotalAmount currency="USD">5.64</TotalAmount><InsertDate>2008-05-12T23:59:35.000-05:00</InsertDate></Line><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">5</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0004</LineNumber><OrderItem><ItemIds><Id>89-1446</Id></ItemIds></OrderItem><OrderQuantity uom="EA">5</OrderQuantity><UnitPrice currency="USD">2.09</UnitPrice><ExtendedPrice currency="USD">4.3</ExtendedPrice><TotalAmount currency="USD">5.64</TotalAmount><InsertDate>2008-05-12T23:59:35.000-05:00</InsertDate></Line><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">5</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0003</LineNumber><OrderItem><ItemIds><Id>89-1452</Id></ItemIds></OrderItem><OrderQuantity uom="EA">5</OrderQuantity><UnitPrice currency="USD">2.09</UnitPrice><ExtendedPrice currency="USD">4.2</ExtendedPrice><TotalAmount currency="USD">5.64</TotalAmount><InsertDate>2008-05-12T23:59:35.000-05:00</InsertDate></Line></Invoice></tns:InvoiceXML><tns:InvoiceXML><?xml version="1.0" encoding="UTF-8"?>[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "<Invoice><Header><DocumentIds><DocumentId><Id>01200777-00</Id></DocumentId></DocumentIds><DocumentDateTime>2008-05-12T14:00:00.000-05:00</DocumentDateTime><SalesOrderDate>2008-05-12T00:00:00.000-05:00</SalesOrderDate><InsertDate>2008-05-12T23:59:37.000-05:00</InsertDate><BODId>NOTRANS</BODId><InvoiceSeqId>24968640</InvoiceSeqId><InvoiceType>SAL</InvoiceType><TaxWithholdingExempt>N</TaxWithholdingExempt><PaymentTerms><PaymentMethod>NOTRANS</PaymentMethod><Description lang="EN-US">NET 30 DAYS</Description><DueDate>2008-06-11T00:00:00.000-05:00</DueDate></PaymentTerms><Parties><SupplierParty><PartyId><Id>000455</Id></PartyId><Name lang="EN">REINDERS, INC.</Name><Addresses><Address><AddressLine1>13400 WATERTOWN PLANK ROAD</AddressLine1><AddressLine2>NOTRANS</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>ELM GROVE</City><StateorProvince>WI</StateorProvince><Country>US</Country><PostalCode>53122-0825</PostalCode><Telephone1>1 262-786-3305</Telephone1></Address></Addresses></SupplierParty><BillToParty><PartyId><Id>50104</Id></PartyId><Name lang="EN-US">WAUKESHA COUNTY ADMIN. BLDG.</Name><Addresses><Address><AddressLine1>PARKPLANNING</AddressLine1><AddressLine2>1320 PEWAUKEE RD. - RM 230</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>WAUKESHA</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53188-3868</PostalCode><Telephone1>(262)548-7790</Telephone1></Address></Addresses></BillToParty><SoldToParty><PartyId><Id>50104</Id></PartyId" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "><Name lang="EN-US">WAUKESHA COUNTY ADMIN. BLDG.</Name><Addresses><Address><AddressLine1>PARKPLANNING</AddressLine1><AddressLine2>1320 PEWAUKEE RD. - RM 230</AddressLin" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\r]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "2" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "0" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "0" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "0" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\r]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "e2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>WAUKESHA</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53188-3868</PostalCode><Telephone1>(262)548-7790</Telephone1></Address></Addresses></SoldToParty><ShipToParty><PartyId><Id>WANAKI</Id></PartyId><Name lang="EN-US">WANAKI MAINTENANCE SHOP</Name><Addresses><Address><AddressLine1>MR. MIKE SKENANDORE, SUPT.</AddressLine1><AddressLine2>N50 W20830 LISBON RD.</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>MENOMONEE FALLS</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53051</PostalCode><Telephone1>NOTRANS</Telephone1></Address></Addresses></ShipToParty></Parties><TotalCharges currency="USD">0.0</TotalCharges><TotalTax currency="USD">0.0</TotalTax><ExtendedPrice currency="USD">374.9</ExtendedPrice><TotalAmount currency="USD">374.9</TotalAmount></Header><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">10</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0003</LineNumber><OrderItem><ItemIds><Id>102-0658</Id></ItemIds></OrderItem><OrderQuantity uom="EA">10</OrderQuantity><UnitPrice currency="USD">2.75</UnitPrice><ExtendedPrice currency="USD">13.74</ExtendedPrice><TotalAmount currency="USD">27.5</TotalAmount><InsertDate>2008-05-12T23:59:37.000-05:00</InsertDate></Line><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">2</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0002</LineNumber><OrderItem><ItemIds><Id>750-061</Id></ItemIds></OrderItem><OrderQuantity uom="EA">2</OrderQuantity><UnitPrice currency="USD">113.0</UnitPrice><ExtendedPrice currency="USD">88.2</ExtendedPrice><TotalAmount currency="USD">158.2</TotalAmount><InsertDate>2008-05-12T23:59:37.000-05:00</InsertDate></Line><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">10</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0004</LineNumber><OrderItem><ItemIds><Id>102-0657</Id></ItemIds></OrderItem><OrderQuantity uom="EA">10</OrderQuantity><UnitPrice currency="USD">2.82</UnitPrice><ExtendedPrice currency="USD">14.12</ExtendedPrice><TotalAmount currency="USD">28.2</TotalAmount><InsertDate>2008-05-12T23:59:37.000-05:00</InsertDate></Line><Line><Toro.Invoice.Line.UserArea><Toro.ShippedQuantity uom="EA">2</Toro.ShippedQuantity></Toro.Invoice.Line.UserArea><Version>1</Version><LineNumber>0001</LineNumber><OrderItem><ItemIds><Id>89-4356</Id></ItemIds></OrderItem><OrderQuantity uom="EA">2</OrderQuantity><UnitPrice currency="USD">115.0</UnitPrice><ExtendedPrice currency="USD">89.46</ExtendedPrice><TotalAmount currency="USD">161.0</TotalAmount><InsertDate>2008-05-12T23:59:37.000-05:00</InsertDate></Line></Invoice></tns:InvoiceXML><tns:InvoiceXML><?xml version="1.0" encoding="UTF-8"?>[\n]" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "<Invoice><Header><DocumentIds><DocumentId><Id>01200785-00</Id></DocumentId></DocumentIds><DocumentDateTime>2008-05-12T14:00:00.000-05:00</DocumentDateTime><SalesOrderDate>2008-05-12T00:00:00.000-05:00</SalesOrderDate><InsertDate>2008-05-12T23:59:38.000-05:00</InsertDate><BODId>NOTRANS</BODId><InvoiceSeqId>24968650</InvoiceSeqId><InvoiceType>SAL</InvoiceType><TaxWithholdingExempt>N</TaxWithholdingExempt><PaymentTerms><PaymentMethod>NOTRANS</PaymentMethod><Description lang="EN-US">NET 10TH PRX</Description><DueDate>2008-0" 2008-05-15 04:14:05,904 [DefaultQuartzScheduler_Worker-4] DEBUG httpclient.wire.content - << "6-10T00:00:00.000-05:00</DueDate></PaymentTerms><Parties><SupplierParty><PartyId><Id>000455</Id></PartyId><Name lang="EN">REINDERS, INC.</Name><Addresses><Address><AddressLine1>13400 WATERTOWN PLANK ROAD</AddressLine1><AddressLine2>NOTRANS</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>ELM GROVE</City><StateorProvince>WI</StateorProvince><Country>US</Country><PostalCode>53122-0825</PostalCode><Telephone1>1 262-786-3305</Telephone1></Address></Addresses></SupplierParty><BillToParty><PartyId><Id>242325</Id></PartyId><Name lang="EN-US">NORTH SHORE LAWN SPRINKLER INC</Name><Addresses><Address><AddressLine1>NOTRANS</AddressLine1><AddressLine2>PO BOX 1187</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>MILWAUKEE</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53201-1187</PostalCode><Telephone1>(262)502-7959</Telephone1></Address></Addresses></BillToParty><SoldToParty><PartyId><Id>242325</Id></PartyId><Name lang="EN-US">NORTH SHORE LAWN SPRINKLER INC</Name><Addresses><Address><AddressLine1>NOTRANS</AddressLine1><AddressLine2>PO BOX 1187</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>MILWAUKEE</City><StateorProvince>WI</StateorProvince><Country>NOCD</Country><PostalCode>53201-1187</PostalCode><Telephone1>(262)502-7959</Telephone1></Address></Addresses></SoldToParty><ShipToParty><PartyId><Id>MEN.FALL</Id></PartyId><... [truncated message content] |
|
From: Leif M. <le...@ta...> - 2008-05-19 03:31:35
|
Sushil, The log file you sent me is the log output of your application, not the Wrapper. It does not contain any of the wrapper related log output. From your wrapper.conf, I see the following: --- wrapper.logfile=../logs/wrapper.log wrapper.logfile.format=LPTM wrapper.logfile.loglevel=NONE --- This means that you have disabled all wrapper log output. Please change the final line to this: --- wrapper.logfile=../logs/wrapper.log wrapper.logfile.format=LPTM wrapper.logfile.loglevel=DEBUG --- Then send me the results. This will show me the information I need. Thanks, Leif Sushil Dodake wrote: > Leif, > Thanks for your prompt reply. > I have already set the DEBUG level logging. > for your information i am using Log4j logging. > Please find attached the log file (Please note this is just a snippet > of the log file and not a complete logs.) > The parts in the log file where the log changes are as below > 1. 2008-05-15 04:14:05,920 [DefaultQuartzScheduler_Worker-4] DEBUG > com.toro.rebateautomation.service.InvoiceServiceImpl - Got response > from invoice service > At this point of time my batch job receives the XML (very large) from > the service A and then it is supposed to massage the XML and send it > to service B. > But here the Wrapper gets restarted. > > 2. 2008-05-15 04:15:17,017 [WrapperListener_start_runner] DEBUG > com.toro.rebateautomation.RebateAutomation - Context files loaded > successfully, batch process started > at this point the wrapper is completely loaded and these logs are very > similar to teh one when i started the wrapper 1st time. > > if you can see there is no error message logged. > > regards, > > Sushil > On Thu, May 15, 2008 at 9:04 PM, Leif Mortenson > <le...@ta... <mailto:le...@ta...>> wrote: > > Sushil, > I think you meant to post this to the mailing list. > > I can think of several things that could be happening to cause > the Wrapper to restart but I would be guessing without seeing > the log file. Could you please set the wrapper.debug=true > property in your wrapper.conf file. Then rerun your application. > > Post back with the contents of the log file as an attachment. > Only send the log file about 5 minutes before the restart to just > after the new JVM has come up. I should then be able to tell > you exactly what is happening. > > A couple questions at the same time though. Your max memory > is set to 512MB. What is the total amount of physical memory > on that system. Java behaves very poorly if the the JVM's > memory is forced to disk swap even slightly. It is important to > make sure that you always have enough free memory to support > all of the JVM's memory. I have seen cases where the JVM will > freeze for up to 5 minutes and run at at least 1/1000 normal > speed because of disc swapping. > > Cheers, > Leif > > > Sushil Dodake wrote: > > > I am using JAVA service Wrapper + Spring in my application. > This application is a batch job which basically calls other > applcations at regular intervals. > i start this batch using the install.bat file and stop it > using uninstall.bat file. > it is deployed as windows service. > The other applications are AXIS2 1.3 webservices. > The batch application is set in the JAVA 6 environament. > > when this batch job calls a webservice A the service returns a > XML (very large in size) which is then massaged by the batch > application and then sent back to another service say B(XML > very large in size) . > the service B then finishes its process and ther returns back > to the batch which eventually updates the status of process in DB > If the above process continues for 2 or 3 hours then the > batch job suddenly gets reset/reload. > this behaviour is very unpredictable some times it happens > after 2/3 hrs some times 4 hrs... once the XML is received it > generally restarts before massaging and sending the XML to > service B and as this reloads the stuff the current running > process is suspended in between and is never completed. > > and Spring reloads application context which is very strange > behavious i guess the JVM restarts. > i could see same log messags which appeared @ the application > start. > In my conf file i havnt set any restart parameters. > also it seems ther is no eror message in the log file which > must have caused the restart. > my configuration file looks as below. > i am new to this any help in this is appreciated > > #******************************************************************** > > # TestWrapper Properties > > # > > # NOTE - Please use src/conf/wrapper.conf.in > <http://wrapper.conf.in/> <http://wrapper.conf.in/> as a > template for your > > > # own application rather than the values used for the > > # TestWrapper sample. > > #******************************************************************** > > # Java Application > > wrapper.java.command=java > > > # Java Main class. This class must implement the > WrapperListener interface > > # or guarantee that the WrapperManager class is initialized. > Helper > > # classes are provided to do this for you. See the Integration > section > > # of the documentation for details. > > wrapper.java.mainclass=com.toro.rebateautomation.RebateAutomation > > > # Java Classpath (include wrapper.jar) Add class path elements as > > # needed starting from 1 > > wrapper.java.classpath.1=../lib/wrapper.jar > > wrapper.java.classpath.2=../lib/*.* > > wrapper.java.classpath.3=../conf/*.* > > > > > # Java Library Path (location of Wrapper.DLL or libwrapper.so) > > wrapper.java.library.path.1=../lib > > > # Java Additional Parameters > > #wrapper.java.additional.1= > > > # Initial Java Heap Size (in MB) > > wrapper.java.initmemory=256 > > > # Maximum Java Heap Size (in MB) > > wrapper.java.maxmemory=512 > > > # Application parameters. Add parameters as needed starting from 1 > > #wrapper.app.parameter.1= > > > #******************************************************************** > > # Wrapper Logging Properties > > #******************************************************************** > > # Format of output for the console. (See docs for formats) > > wrapper.console.format=PM > > > # Log Level for console output. (See docs for log levels) > > wrapper.console.loglevel=INFO > > > # Log file to use for wrapper output logging. > > wrapper.logfile=../logs/wrapper.log > > > # Format of output for the log file. (See docs for formats) > > wrapper.logfile.format=LPTM > > > # Log Level for log file output. (See docs for log levels) > > wrapper.logfile.loglevel=NONE > > > # Maximum size that the log file will be allowed to grow to before > > # the log is rolled. Size is specified in bytes. The default value > > # of 0, disables log rolling. May abbreviate with the 'k' (kb) or > > # 'm' (mb) suffix. For example: 10m = 10 megabytes. > > wrapper.logfile.maxsize=0 > > > # Maximum number of rolled log files which will be allowed > before old > > # files are deleted. The default value of 0 implies no limit. > > wrapper.logfile.maxfiles=0 > > > # Log Level for sys/event log output. (See docs for log levels) > > wrapper.syslog.loglevel=NONE > > > #******************************************************************** > > # Wrapper Windows Properties > > #******************************************************************** > > # Title to use when running as a console > > wrapper.console.title=Rebate Automation > > > #******************************************************************** > > # Wrapper Windows NT/2000/XP Service Properties > > #******************************************************************** > > # WARNING - Do not modify any of these properties when an > application > > # using this configuration file has been installed as a service. > > # Please uninstall the service before modifying this section. The > > # service can then be reinstalled. > > > # Name of the service > > wrapper.ntservice.name <http://wrapper.ntservice.name/> > <http://wrapper.ntservice.name/>=Rebate Automation > > > > # Display name of the service > > wrapper.ntservice.displayname=Rebate Automation > > > # Description of the service > > wrapper.ntservice.description=Rebate Automation > > > # Service dependencies. Add dependencies as needed starting from 1 > > wrapper.ntservice.dependency.1= > > > # Mode in which the service is installed. AUTO_START or > DEMAND_START > > wrapper.ntservice.starttype=AUTO_START > > > # Allow the service to interact with the desktop. > > wrapper.ntservice.interactive=false > > > > > > |
|
From: Leif M. <le...@ta...> - 2008-05-21 00:58:02
|
Sushil, Ok. Yes you can not have more than one application piping to the same log file. This should be the same for most applications as they each open the log file for appending. When this happens, each file handle keeps track of where it thinks the end of the file is and writes to it. The wrapper is doing a read lock but if the file has been inactive for more than a couple seconds it allows the file to be closed. If you want to put everything into the same log file, I would suggest configuring log4j to output to the console and then let the Wrapper handle logging everything to the wrapper.log file. This is how I usally create applications. Looking at the log file that you sent, it looks like the Java process is being starved of CPU for some reason and is not responding to the ping requests. Under normal situations, this should not happen. Here are some causes I can think of. 1) The system does not have enough available physical memory to store the entire JVM without disk swapping. 2) You may have set the thread priority to a very high value for the thread doing the processing. 3) Another process has its priority set to a high value so that it is allowed to consume all available CPU. In either case, an easy fix should be to extend the ping timeout as you mentioned. If none of the above are true, especially 1, then this should not be necessary. Try this: wrapper.ping.timeout=300 Be aware that this new timeout will be the fastest that the Wrapper will be able to decide that your application has actually frozen and then restart it. We recommend keeping this timeout as short as possible while being long enough to avoid restarts. Please let me know the results. Cheers, Leif On Wed, May 21, 2008 at 1:36 AM, Sushil Dodake <sus...@gm...> wrote: > Leif, > Actually as i mentioed below i am using log4j for logging so my conf folder > has following files > 1. application.properties > 2. DataSource.xml > 3. log4j.properties > 4. <application name>.conf > > and i have pointed logging of wrapper (defined in the .conf file) and > application (defined in the log4j.properties file) to same file. > but i could find that in that case the wrapper logging is not done correctly > as it cant captuer the logs of why and how wrapper is restarted. which is > very confusing to me. > so i just bifurcated the Wrapper logging and Log4j logging to 2 diffrent > files (although the log messages are almost similar except the wrapper > loging showed th reason of restart) and found that the JVM is restarted as > there is no response. > I brisk through google and could find out that the wrapper is not able to > get any response from JVM and hence it starts new JVM instance. > as in my .conf file i have not set any of the following properties > wrapper.ping.timeout > wrapper.cpu.timeout > Wrapper is using the default 30 secs for wrapper.ping.timeout property. > > do you think i shall change the wrapper.ping.timeout value to 5 min and then > try or is there any other solution to this problem? > > <snip> > RD</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>BALLWIN</City><StateorProvince>MO</StateorProvince><Country>NOCD</Country><PostalCode>63011</PostalCode><Telephone1>(636)227-8580</Telephone1></Address></Addresses></SoldToParty><ShipToParty><PartyId><Id>1</Id></PartyId><Name > lang="EN-US">CITY OF BALLWIN G C</" > DEBUG | wrapperp | 2008/05/20 06:47:41 | send a packet PING : ping > DEBUG | wrapperp | 2008/05/20 06:47:45 | send a packet PING : ping > DEBUG | wrapperp | 2008/05/20 06:47:49 | send a packet PING : ping > DEBUG | wrapperp | 2008/05/20 06:47:54 | send a packet PING : ping > DEBUG | wrapperp | 2008/05/20 06:47:58 | send a packet PING : ping > DEBUG | wrapperp | 2008/05/20 06:48:02 | send a packet PING : ping > DEBUG | wrapperp | 2008/05/20 06:48:06 | send a packet PING : ping > DEBUG | wrapperp | 2008/05/20 06:48:10 | send a packet PING : ping > ERROR | wrapper | 2008/05/20 06:48:12 | JVM appears hung: Timed out > waiting for signal from JVM. > ERROR | wrapper | 2008/05/20 06:48:12 | JVM did not exit on request, > terminated > DEBUG | wrapperp | 2008/05/20 06:48:12 | server listening on port 32000. > DEBUG | wrapper | 2008/05/20 06:48:13 | Waiting 5 seconds before launching > another JVM. > STATUS | wrapper | 2008/05/20 06:48:17 | Launching a JVM... > DEBUG | wrapper | 2008/05/20 06:48:17 | command: "C:\Program > Files\Java\jdk1.6.0_05\bin\java.exe" -Xms768m -Xmx1024m > -Djava.library.path="../lib" -classpath > "../lib/wrapper.jar;../lib/.;../lib/..;../lib/antlr-2.7.6.jar;../lib/asm-attrs.jar;../lib/asm.jar;../lib/axiom-api-1.2.5.jar;../lib/axiom-dom-1.2.5.jar;../lib/axiom-impl-1.2.5.jar;../lib/axis2-kernel-1.3.jar;../lib/axis2-spring-1.3.jar;../lib/castor-1.1.2.1-xml.jar;../lib/cglib-2.1.3.jar;../lib/commons-codec-1.3.jar;../lib/commons-collections-2.1.1.jar;../lib/commons-dbcp-1.2.1.jar;../lib/commons-httpclient-3.0.1.jar;../lib/commons-logging-1.1.jar;../lib/dom4j-1.6.1.jar;../lib/hibernate3.jar;../lib/jmock-1.1.0RC1.jar;../lib/jta.jar;../lib/junit.jar;../lib/log4j-1.2.13.jar;../lib/oracle_jdbc.jar;../lib/quartz.jar;../lib/RebateAutomation_v1_0.jar;../lib/spring.jar;../lib/stax-api-1.0.1.jar;../lib/wrapper.dll;../lib/wrapper.jar;../lib/wrappertest.jar;../lib/wsdl4j-1.6.2.jar;../lib/wstx-asl-3.2.1.jar;../lib/xerces-2.4.0.jar;../lib/xercesImpl-2.8.1.jar;../lib/xml-apis-1.3.03.jar;../lib/XmlSchema-1.3.2.jar;../conf/.;../conf/..;../conf/application.properties;../conf/DataSource.xml;../conf/log4j.properties;../conf/RebateAutomation.conf" > -Dwrapper.key="vpyFZDCX8I7aEkfa" -Dwrapper.port=32000 > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > -Dwrapper.debug="TRUE" -Dwrapper.pid=3920 -Dwrapper.version="3.2.3" > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=2 <snip> |
|
From: Sushil D. <sus...@gm...> - 2008-05-23 14:06:52
|
Leif, I tried with 5 min timeout and that seems to have solve my issue as the wrapper didnt start. I also directed the logs as described by you. thanks for your suggestions. Regards, Sushil On Tue, May 20, 2008 at 7:57 PM, Leif Mortenson <le...@ta...> wrote: > Sushil, > Ok. Yes you can not have more than one application piping to the same > log file. This should be the same for most applications as they each > open the log file for appending. When this happens, each file handle > keeps track of where it thinks the end of the file is and writes to > it. The wrapper is doing a read lock but if the file has been > inactive for more than a couple seconds it allows the file to be > closed. > > If you want to put everything into the same log file, I would suggest > configuring log4j to output to the console and then let the Wrapper > handle logging everything to the wrapper.log file. This is how I > usally create applications. > > Looking at the log file that you sent, it looks like the Java process > is being starved of CPU for some reason and is not responding to the > ping requests. Under normal situations, this should not happen. > > Here are some causes I can think of. > 1) The system does not have enough available physical memory to store > the entire JVM without disk swapping. > 2) You may have set the thread priority to a very high value for the > thread doing the processing. > 3) Another process has its priority set to a high value so that it is > allowed to consume all available > CPU. > > In either case, an easy fix should be to extend the ping timeout as > you mentioned. > If none of the above are true, especially 1, then this should not be > necessary. > Try this: > wrapper.ping.timeout=300 > > Be aware that this new timeout will be the fastest that the Wrapper > will be able to decide > that your application has actually frozen and then restart it. We > recommend keeping this > timeout as short as possible while being long enough to avoid restarts. > > Please let me know the results. > > Cheers, > Leif > > On Wed, May 21, 2008 at 1:36 AM, Sushil Dodake <sus...@gm...> > wrote: > > Leif, > > Actually as i mentioed below i am using log4j for logging so my conf > folder > > has following files > > 1. application.properties > > 2. DataSource.xml > > 3. log4j.properties > > 4. <application name>.conf > > > > and i have pointed logging of wrapper (defined in the .conf file) and > > application (defined in the log4j.properties file) to same file. > > but i could find that in that case the wrapper logging is not done > correctly > > as it cant captuer the logs of why and how wrapper is restarted. which is > > very confusing to me. > > so i just bifurcated the Wrapper logging and Log4j logging to 2 diffrent > > files (although the log messages are almost similar except the wrapper > > loging showed th reason of restart) and found that the JVM is restarted > as > > there is no response. > > I brisk through google and could find out that the wrapper is not able to > > get any response from JVM and hence it starts new JVM instance. > > as in my .conf file i have not set any of the following properties > > wrapper.ping.timeout > > wrapper.cpu.timeout > > Wrapper is using the default 30 secs for wrapper.ping.timeout property. > > > > do you think i shall change the wrapper.ping.timeout value to 5 min and > then > > try or is there any other solution to this problem? > > > > > > <snip> > > > RD</AddressLine2><AddressLine3>NOTRANS</AddressLine3><AddressLine4>NOTRANS</AddressLine4><City>BALLWIN</City><StateorProvince>MO</StateorProvince><Country>NOCD</Country><PostalCode>63011</PostalCode><Telephone1>(636)227-8580</Telephone1></Address></Addresses></SoldToParty><ShipToParty><PartyId><Id>1</Id></PartyId><Name > > lang="EN-US">CITY OF BALLWIN G C</" > > DEBUG | wrapperp | 2008/05/20 06:47:41 | send a packet PING : ping > > DEBUG | wrapperp | 2008/05/20 06:47:45 | send a packet PING : ping > > DEBUG | wrapperp | 2008/05/20 06:47:49 | send a packet PING : ping > > DEBUG | wrapperp | 2008/05/20 06:47:54 | send a packet PING : ping > > DEBUG | wrapperp | 2008/05/20 06:47:58 | send a packet PING : ping > > DEBUG | wrapperp | 2008/05/20 06:48:02 | send a packet PING : ping > > DEBUG | wrapperp | 2008/05/20 06:48:06 | send a packet PING : ping > > DEBUG | wrapperp | 2008/05/20 06:48:10 | send a packet PING : ping > > ERROR | wrapper | 2008/05/20 06:48:12 | JVM appears hung: Timed out > > waiting for signal from JVM. > > ERROR | wrapper | 2008/05/20 06:48:12 | JVM did not exit on request, > > terminated > > DEBUG | wrapperp | 2008/05/20 06:48:12 | server listening on port 32000. > > DEBUG | wrapper | 2008/05/20 06:48:13 | Waiting 5 seconds before > launching > > another JVM. > > STATUS | wrapper | 2008/05/20 06:48:17 | Launching a JVM... > > DEBUG | wrapper | 2008/05/20 06:48:17 | command: "C:\Program > > Files\Java\jdk1.6.0_05\bin\java.exe" -Xms768m -Xmx1024m > > -Djava.library.path="../lib" -classpath > > > "../lib/wrapper.jar;../lib/.;../lib/..;../lib/antlr-2.7.6.jar;../lib/asm-attrs.jar;../lib/asm.jar;../lib/axiom-api-1.2.5.jar;../lib/axiom-dom-1.2.5.jar;../lib/axiom-impl-1.2.5.jar;../lib/axis2-kernel-1.3.jar;../lib/axis2-spring-1.3.jar;../lib/castor-1.1.2.1-xml.jar;../lib/cglib-2.1.3.jar;../lib/commons-codec-1.3.jar;../lib/commons-collections-2.1.1.jar;../lib/commons-dbcp-1.2.1.jar;../lib/commons-httpclient-3.0.1.jar;../lib/commons-logging-1.1.jar;../lib/dom4j-1.6.1.jar;../lib/hibernate3.jar;../lib/jmock-1.1.0RC1.jar;../lib/jta.jar;../lib/junit.jar;../lib/log4j-1.2.13.jar;../lib/oracle_jdbc.jar;../lib/quartz.jar;../lib/RebateAutomation_v1_0.jar;../lib/spring.jar;../lib/stax-api-1.0.1.jar;../lib/wrapper.dll;../lib/wrapper.jar;../lib/wrappertest.jar;../lib/wsdl4j-1.6.2.jar;../lib/wstx-asl-3.2.1.jar;../lib/xerces-2.4.0.jar;../lib/xercesImpl-2.8.1.jar;../lib/xml-apis-1.3.03.jar;../lib/XmlSchema-1.3.2.jar;../conf/.;../conf/..;../conf/application.properties;../conf/DataSource.xml;../conf/log4j.properties;../conf/RebateAutomation.conf" > > -Dwrapper.key="vpyFZDCX8I7aEkfa" -Dwrapper.port=32000 > > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > > -Dwrapper.debug="TRUE" -Dwrapper.pid=3920 -Dwrapper.version="3.2.3" > > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > > -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=2 > > <snip> > |