Re: c2: scales badly compared to c1

2002-02-11 Thread Hans-Guenter Stein



Vadim Gritsenko wrote:

>
> In addition to this: Cocoon *requires* tuning in order to make it work
> fast. Search for "performance", "tuning" in the users and developers
> email archives, it was discussed couple of times but not documented.
>
> PS: Tuning could be for: memory, high concurrent users load, startup
> time, etc.

I searched the archives but didn't find any direct hints at all. All I tried
so far is to increase those -pool parameters which didn't seem to help
much...


>
>
> Vadim
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>

--
Hans-Günter Stein
Vorstand, SiteOS AG
Weißenfelderstraße 3
85551 Kirchheim/Heimstetten (München)

Tel. +49 - 89 - 90 77 66 00
mail: [EMAIL PROTECTED]



-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




c2: broken pipe

2002-02-08 Thread Hans-Guenter Stein

Any help? In my c2 setup with tomcat 3.3, when several request are to be
processed simultaniously, I get the following exception:

ERROR   (2002-02-08) 18:49.35:583   [access] (/standard.xml)
Thread-39/CocoonServlet: Problem with servlet
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.io.IOException: Broken pipe
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:370)

at
org.apache.cocoon.www.sitemap_xmap.matchN101BA(sitemap_xmap.java:1484)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1248)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1182)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:180)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144)

at org.apache.cocoon.Cocoon.process(Cocoon.java:582)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown
Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown
Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)

at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown
Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:498)
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at
java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled
Code))
at org.apache.tomcat.modules.server.Ajp13.send(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13.doWrite(Unknown
Source)
at
org.apache.tomcat.modules.server.Ajp13Response.doWrite(Unknown Source)
at org.apache.tomcat.core.OutputBuffer.realWriteBytes(Unknown
Source)
at org.apache.tomcat.util.buf.ByteChunk.append(Unknown Source)
at org.apache.tomcat.core.OutputBuffer.writeBytes(Unknown
Source)
at org.apache.tomcat.core.OutputBuffer.write(Unknown Source)
at
org.apache.tomcat.facade.ServletOutputStreamFacade.write(Unknown Source)

at
org.apache.tomcat.facade.ServletOutputStreamFacade.write(Unknown Source)

at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:318)

at
org.apache.cocoon.www.sitemap_xmap.matchN101BA(sitemap_xmap.java:1484)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1248)
at
org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1182)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:180)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127)
at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144)

at org.apache.cocoon.Cocoon.process(Cocoon.java:582)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown
Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown
Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)

at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown
Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:498)
java.io.IOException: Broken pipe
at java.net.SocketOutputStream.socketWrite(Native Method)
at
java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled
Code))
at org.apache.tomcat.modules.server.Ajp13.send(Unknown Source)
at org.apache.tomcat.modules.server.Ajp13.doWrite(Unknown
Source)
at
org.apache.tomcat.modules.server.Ajp13Response.doWrite(Unknown Source)
at org.apache.tomcat.core.OutputBuffer.realWriteBytes(Unknown
Source)
at org.apache.tomcat.util.buf.ByteChunk.append(Unknown Source)
at org.apache.tomcat.core.OutputBuffer.writeBytes(Unknown
Source)
at org.apache.tomcat.core.OutputBuffer.write(Unknown Source)
at

c2: scales badly compared to c1

2002-02-08 Thread Hans-Guenter Stein

I have a c1 application and migrated it to c2.

I have both (c1 and c2) running in the same environment (tomcat 3.3) on
the same machine.

I did a first very basic performance test by just hiting the reload
button of my browser several times very quickly and found:

c1:
single request processing time: 10 ms
multiple requests: 15 ms, 20 ms, 16 ms,...

c2:
single request processing time: 10 ms
multiple requests: 500 ms, 4000 ms, 6000 ms,...

where does it get stuck? is something blocking? how to find out? anyone
with similar experiences?





--
Hans-Günter Stein
Vorstand, SiteOS AG
Weißenfelderstraße 3
85551 Kirchheim/Heimstetten (München)

Tel. +49 - 89 - 90 77 66 00
mail: [EMAIL PROTECTED]



-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Formatter for FOP 0.18++

2001-06-18 Thread Hans-Guenter Stein

Is there anyone who could send me a version of FO2PDFFormatter which
runs with FOP 0.18++?

I tried the following hack, but the resulting pdf is not correct:

  public void format(Document document, Writer writer, Dictionary
parameters) throws Exception
   {
 Driver driver = new Driver();
 driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer",
Version.getVersion());

driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
 driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
 ByteArrayOutputStream out = new ByteArrayOutputStream();
 driver.setOutputStream(out);

driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");


driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
 deferredInit ();
 ByteArrayOutputStream tempStream = new ByteArrayOutputStream ();
 xmlFormatter.format (document, new PrintWriter(tempStream),
NO_PARAMETERS);
 byte[] tempBytes = tempStream.toByteArray ();

* the tempBytes array now contains the correct fo-file (is
renders ok, if I run its content through fop-0.19.0 manually) *

 SAXParser parser = new SAXParser ();
 parser.setFeature("http://xml.org/sax/features/namespaces";, true);
driver.buildFOTree(parser, new InputSource (new ByteArrayInputStream
(tempBytes)));
 driver.format();
 driver.render();
 byte ba[] = out.toByteArray();
 char ca[] = new char[ba.length];
 for(int i = 0; i< ba.length;i++)
 writer.write(ba[i]);
}

protected void deferredInit () throws Exception {
if (xmlFormatter == null)
   {
xmlFormatter = new
XMLFormatter();//formatters.getFormatterForType ("text/xml");
}
}

--
Hans-Günter Stein
Vorstand, SiteOS AG
Weißenfelderstraße 3
85551 Kirchheim/Heimstetten (München)

Tel. +49 - 89 - 90 77 66 00
mail: [EMAIL PROTECTED]



-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>