Re: high cpu usage during xslt processing (resending)
Dunno for windows, but CPU usage for tomcat on linux is always 100% of available CPU time when serving any kind of request. This is the case for any application (tomcat or other) because this is the way process management is done in the OS (any application get 100% CPU when requesting it if the application is the only one to request CPU). Of course if i run 2 applications and ask them both do do calculations at the same time, they will each use 50% CPU (100% each if you have multiprocessor). If i change the priority of one of those applications if might get something like 20% for one and 80% for the other one. So the question is not how much cpu time is used (if i use 100% that means it uses all available cpu, which is good because it use everything it can to server the request as fat as possible), but the question might rather be to know if serving 15 xsl pages simultaneously on tomcat is significantly slower than serving the same 15 pages on jrun Anyway if all you want is have tomcat not slow down other service you might have, just lower it's process priority (using windows tools provided and i don't know about) Le Jeudi 9 Juin 2005 09:51, kamal r a écrit : > (Resending as earlier mail had bounced) > Recently we have migrated our application from > jrun3.1 to tomcat 4.1.31 running on windows 2000 > advanced server. It uses saxon 6.5.3 for xslt > processing and the cpu usage is almost 100% even for > 15 concurrent users. So in order to do a simple load > test on the xslt part alone, I wrote a test jsp and > the cpu usage is almost 100% for 15 concurrent users > for a xsl file 106kb in size. > XSLTTest.jsp > TransformerFactory factory = > TransformerFactory.newInstance(); > StreamSource source = new StreamSource(new > FileInputStream("test.xsl")); > Templates pss = factory.newTemplates(source); > Transformer transformer = pss.newTransformer(); > ByteArrayInputStream temp = new > ByteArrayInputStream("".getBytes()); > source = new StreamSource(temp); > StreamResult result = new > StreamResult(response.getOutputStream()); > transformer.transform(source, result); > > The cpu usage is at 60% for the same jsp page on the > jrun 3.1 server. Can anybody provide me with pointers > to reduce cpu usage or has anyone who has faced a > similar scenario. > Please let me know if I need to provide more inputs > as this is my first mail to the list. > > Thanks > Kamal > > Send instant messages to your online friends http://uk.messenger.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: high cpu usage during xslt processing (resending)
> == > Date: Thu, 9 Jun 2005 08:51:38 +0100 (BST) > From: kamal r <[EMAIL PROTECTED]> > To: tomcat-user@jakarta.apache.org > Subject: high cpu usage during xslt processing (resending) > == > > (Resending as earlier mail had bounced) Bounced? If you subscribe a mailing list, all the message you post will be resend to your email address... G. -- Giuseppe Briotti [EMAIL PROTECTED] "Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius." (Orazio) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
high cpu usage during xslt processing (resending)
(Resending as earlier mail had bounced) Recently we have migrated our application from jrun3.1 to tomcat 4.1.31 running on windows 2000 advanced server. It uses saxon 6.5.3 for xslt processing and the cpu usage is almost 100% even for 15 concurrent users. So in order to do a simple load test on the xslt part alone, I wrote a test jsp and the cpu usage is almost 100% for 15 concurrent users for a xsl file 106kb in size. XSLTTest.jsp TransformerFactory factory = TransformerFactory.newInstance(); StreamSource source = new StreamSource(new FileInputStream("test.xsl")); Templates pss = factory.newTemplates(source); Transformer transformer = pss.newTransformer(); ByteArrayInputStream temp = new ByteArrayInputStream("".getBytes()); source = new StreamSource(temp); StreamResult result = new StreamResult(response.getOutputStream()); transformer.transform(source, result); The cpu usage is at 60% for the same jsp page on the jrun 3.1 server. Can anybody provide me with pointers to reduce cpu usage or has anyone who has faced a similar scenario. Please let me know if I need to provide more inputs as this is my first mail to the list. Thanks Kamal Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
high cpu usage during xslt processing (resending)
(Resending as earlier mail had bounced) Recently we have migrated our application from jrun3.1 to tomcat 4.1.31 running on windows 2000 advanced server. It uses saxon 6.5.3 for xslt processing and the cpu usage is almost 100% even for 15 concurrent users. So in order to do a simple load test on the xslt part alone, I wrote a test jsp and the cpu usage is almost 100% for 15 concurrent users for a xsl file 106kb in size. XSLTTest.jsp TransformerFactory factory = TransformerFactory.newInstance(); StreamSource source = new StreamSource(new FileInputStream("test.xsl")); Templates pss = factory.newTemplates(source); Transformer transformer = pss.newTransformer(); ByteArrayInputStream temp = new ByteArrayInputStream("".getBytes()); source = new StreamSource(temp); StreamResult result = new StreamResult(response.getOutputStream()); transformer.transform(source, result); The cpu usage is at 60% for the same jsp page on the jrun 3.1 server. Can anybody provide me with pointers to reduce cpu usage or has anyone who has faced a similar scenario. Please let me know if I need to provide more inputs as this is my first mail to the list. Thanks Kamal Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
high cpu usage during xslt processing
Recently we have migrated our application from jrun3.1 to tomcat 4.1.31 running on windows 2000 advanced server. It uses saxon 6.5.3 for xslt processing and the cpu usage is almost 100% even for 15 concurrent users. So in order to do a simple load test on the xslt part alone, I wrote a test jsp and the cpu usage is almost 100% for 15 concurrent users for a xsl file 106kb in size. XSLTTest.jsp TransformerFactory factory = TransformerFactory.newInstance(); StreamSource source = new StreamSource(new FileInputStream("test.xsl")); Templates pss = factory.newTemplates(source); Transformer transformer = pss.newTransformer(); ByteArrayInputStream temp = new ByteArrayInputStream("".getBytes()); source = new StreamSource(temp); StreamResult result = new StreamResult(response.getOutputStream()); transformer.transform(source, result); The cpu usage is at 60% for the same jsp page on the jrun 3.1 server. Can anybody provide me with pointers to reduce cpu usage or has anyone who has faced a similar scenario. Please let me know if I need to provide more inputs as this is my first mail to the list. Thanks Kamal Send instant messages to your online friends http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xslt processing
Undeliverable mail.
Re: xslt processing
Undeliverable mail.
Re: xslt processing
Undeliverable mail.
Re: xslt processing
Undeliverable mail.
RE: xslt processing
Even easier, the latest xerces/xalan supports JAXP ( javax.xml.transform ), which allows very simple access to XSLT transforms. Using the Transformer class, Stream input can be transformed by XSLT to Stream output. -Original Message- From: Arnaud Dostes - NTI [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 5:33 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: xslt processing Cocoon is a great framework, that will do wonders if you handwrite your xml To use dynamically XML (as I like to do), another solution is to use the JDOM API (www.jdom.org) to build the XML doc inside a servlet or jsp, and to use XALAN to perform the XSLT (xml.apache.org) The JDOM api uses XERCES (from the apache found.) but makes it easy to build a doc, so you'll need three jar files, xerces.jar xalan.jar and jdomb6.jar. Copy them to your lib directory. Cheers. - Original Message - From: "Hussayn Dabbous" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 20, 2001 4:56 PM Subject: Re: xslt processing > try cocoon ... > > Peter Barta wrote: > > > > Hi, > > > > does anyone have some suggestions how to configure tomcat for processing > > xml and xslt on the server side? > > > > Thanks: Peter > > -- > Dr. Hussayn Dabbous > SAXESS Software Design GmbH > Neuenhöfer Allee 125 > 50935 Köln > Telefon: +49-221-56011-0 > Fax: +49-221-56011-20 > E-Mail: [EMAIL PROTECTED]
Re: xslt processing
Cocoon is a great framework, that will do wonders if you handwrite your xml To use dynamically XML (as I like to do), another solution is to use the JDOM API (www.jdom.org) to build the XML doc inside a servlet or jsp, and to use XALAN to perform the XSLT (xml.apache.org) The JDOM api uses XERCES (from the apache found.) but makes it easy to build a doc, so you'll need three jar files, xerces.jar xalan.jar and jdomb6.jar. Copy them to your lib directory. Cheers. - Original Message - From: "Hussayn Dabbous" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 20, 2001 4:56 PM Subject: Re: xslt processing > try cocoon ... > > Peter Barta wrote: > > > > Hi, > > > > does anyone have some suggestions how to configure tomcat for processing > > xml and xslt on the server side? > > > > Thanks: Peter > > -- > Dr. Hussayn Dabbous > SAXESS Software Design GmbH > Neuenhöfer Allee 125 > 50935 Köln > Telefon: +49-221-56011-0 > Fax: +49-221-56011-20 > E-Mail: [EMAIL PROTECTED]
Re: xslt processing
try cocoon ... Peter Barta wrote: > > Hi, > > does anyone have some suggestions how to configure tomcat for processing > xml and xslt on the server side? > > Thanks: Peter -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 50935 Köln Telefon: +49-221-56011-0 Fax: +49-221-56011-20 E-Mail: [EMAIL PROTECTED]
xslt processing
Hi, does anyone have some suggestions how to configure tomcat for processing xml and xslt on the server side? Thanks: Peter