Daniel--
Since its not I/O-related, and you've already shown that Castor performs
well outside of JBoss, I'd look at run-time issues like EJB container
performance or the interaction between JBoss and Castor.  

You need a profiling tool.  Depending on your JVM and JBoss' capabilities,
you might be able to dump some JPDA output to a text file and analyze that.


Sorry about your 15X performance loss.  :-(
Chris

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 10:07 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] castor + JBOSS + weak performance !! ??


Of course i've tried but results are the same.

Even when i'm using String instead of file (outside the loop)
like this:
Order order=Order.unmarshal(new StringReader("blah blah XMLstring"))

executing loop local - execution time is about 4 sec.
executing on jboss3.0 in SessBean - execution time 60 sec.


i don't know whats going on ... maybe unmarshall function is calling by
JBoss in some specific way ?

unmarshalling is the most important part of my Application (as important as
performance) ... so if u have any ideas please help

greetings danny


Christopher wrote:

>Daniel--
>Try loading the file just once (outside the loop) and
>see how long the Castor part takes inside the loop.

>It'll be interesting to see if JBoss has an I/O performance issue.
>Chris

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 9:38 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] castor + JBOSS + weak performance !! ??


Please someone tell me what's going on ?

i have a simple XML Document with simple XSD file. Document has root element
called Order.
I've generated object model with Source Generator.
Everything works fine (including marshalling and unmarshalling). But there
is a problem.

When i'm trying to unmarshall my XML document local (without app Server) -
execution of unmarshalling lasts about 4500 ms.
But when i'm using JBOSS 3.0 with simple SessionBean - unmarshalling of the
same document (in SessionBean with the same code - see below) lasts about
60000 ms !!!! ???

What's going on?

thanks for answers
danny
----------------------------------------------------------------------------
-------------------
------------- My Simple Unmarshalling
code -----------------------------------
----------------------------------------------------------------------------
-------------------
    long startTime = System.currentTimeMillis();

    //unmarshalling in loop
    try {for (int i=0;i<100;i++){
      Order order=Order.unmarshal(new FileReader("6.5_order.xml"));}
    }
    catch (Exception ex) {
        ex.printStackTrace();
    }

    long endTime = System.currentTimeMillis();
    System.out.println("execution Time " + (endTime - startTime) + " ms.");

----------------------------------------------------------------------------
-------------------------

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev




Blue Cross Blue Shield of Florida, Inc., and its subsidiary and
affiliate companies are not responsible for errors or omissions in this
e-mail message. Any personal comments made in this e-mail do not reflect the
views of Blue Cross Blue Shield of Florida, Inc.

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev




Blue Cross Blue Shield of Florida, Inc., and its subsidiary and 
affiliate companies are not responsible for errors or omissions in this e-mail 
message. Any personal comments made in this e-mail do not reflect the views of Blue 
Cross Blue Shield of Florida, Inc.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to