You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/10/11 00:39:51 UTC

[jira] Created: (AXIS-1597) Reponse time increases with load for axis

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Sun, 10 Oct 2004 3:39 PM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (AXIS-1597) Reponse time increases with load for axis

Posted by ax...@ws.apache.org.
Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Thu, 14 Oct 2004 8:35 AM

Applied Jongjin/Peter 's patch (with my own tiny changes). Please review.

-- dims
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Thu, 14 Oct 2004 8:35 AM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1597) Reponse time increases with load for axis

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Jongjin Choi
    Created: Sun, 10 Oct 2004 6:09 PM
       Body:
Anand, which xml parser are you using?
I recommend you to try latest version of Xerces.
In my experience, Xerces 2.6.2 performs well in multi-threaded 
environment compared to JDK 1.4's embedded parser and/or crimson.
 
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1597?page=comments#action_53879

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Sun, 10 Oct 2004 6:09 PM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1597) Reponse time increases with load for axis

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Peter Smith
    Created: Sun, 10 Oct 2004 7:50 PM
       Body:
- Shouldn't the synchronized (documentBuilders) in getDocumentBuildFactory() enclose the empty test?
- Why is the synchronized (documentBuilders) in  releaseDocumentBuilder method  necessary?

cheers,
Peter
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1597?page=comments#action_53888

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Sun, 10 Oct 2004 7:50 PM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1597) Reponse time increases with load for axis

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Peter Smith
    Created: Sun, 10 Oct 2004 8:52 PM
       Body:
Yes, I think same (about releaseSAXParser). Although I doubt you'd gain much by changing it.

Also, in your code [for review] shouldn't the paired calls to get/release be balanced using 'finally' blocks, as in:

DocumentBuilder db = null;
try {
  db = getDocumentBuilder();
  ...
} finally {
  if (db != null) {
    releaseDocumentBuilder(db);
}

Cheers,
Peter.



---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1597?page=comments#action_53894

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Sun, 10 Oct 2004 8:52 PM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1597) Reponse time increases with load for axis

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Anand Nair
    Created: Mon, 11 Oct 2004 12:52 AM
       Body:
Thanks much for quick reponse! We are using Xerces 1.4.4 version with Axis 1.1. This is definetly old and we need to upgrade but would that solve our problem? Also I am also seeing that many threads wait at :

at org.apache.xerces.utils.SymbolCache.addSymbolToCache(SymbolCache.java:220)
	at org.apache.xerces.utils.StringPool.addSymbol(StringPool.java:393)
	at org.apache.xerces.validators.common.XMLValidator.init(XMLValidator.java:2075)
	at org.apache.xerces.validators.common.XMLValidator.resetCommon(XMLValidator.java:2058)
	at org.apache.xerces.validators.common.XMLValidator.resetOrCopy(XMLValidator.java:480)
	at org.apache.xerces.framework.XMLParser.resetOrCopy(XMLParser.java:1021)
	at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:311)
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:393)
	at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:242)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1597?page=comments#action_53898

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Mon, 11 Oct 2004 12:52 AM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1597) Reponse time increases with load for axis

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Davanum Srinivas
    Created: Sun, 10 Oct 2004 4:12 PM
       Body:
Please try 1.2 RC1
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1597?page=comments#action_53876

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Sun, 10 Oct 2004 4:12 PM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1597) Reponse time increases with load for axis

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Jongjin Choi
    Created: Sun, 10 Oct 2004 8:17 PM
       Body:
Peter,

- Shouldn't the synchronized (documentBuilders) in getDocumentBuildFactory() enclose the empty test?

Yes, I think you're right. I missed that.

- Why is the synchronized (documentBuilders) in  releaseDocumentBuilder method necessary?

Do you mean that it is not necessary becasue the Stack class is synchronized? Umm.. I think you're right, too.
So, I don't think that it is necessary to synchronize XMLUtils.class in releaseSAXParser(), too. What do you think?

The difference in get/releaseSAXParser in XMLUtils and get/releaseDocumentBuilder is :

* getSAXParser - synchronized method
  getDocumentBuilder - synchronize stack in method (empty check, pop)

* releaseSAXParser - synchronized XMLUtils.class
  releaseDocumentBuilder - no synchronization needed ( stack is synchronized)

 
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1597?page=comments#action_53890

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Sun, 10 Oct 2004 8:17 PM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1597) Reponse time increases with load for axis

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Jongjin Choi
    Created: Sun, 10 Oct 2004 7:24 PM
       Body:
This is the code for DocumentBuilder reuse.
Can you review this?


    private static Stack documentBuilders = new Stack();
    
    public static DocumentBuilder getDocumentBuilder() {
    	if (!documentBuilders.empty()) {
    		synchronized (documentBuilders) {
    			return (DocumentBuilder) documentBuilders.pop();
    		}    		
    	}
    	
    	try {
    		DocumentBuilder db = null;
    		synchronized (dbf) {
    			db = dbf.newDocumentBuilder();
    		}
    		return db;
    	} catch (ParserConfigurationException e) {
    		log.error(Messages.getMessage("parserConfigurationException00"), e);
    		return null;
    	}
    }
    
    public static void releaseDocumentBuilder(DocumentBuilder db) {
    	synchronized (documentBuilders) {
    		db.setErrorHandler(null);	// setting implementation default
    		db.setEntityResolver(null); // setting implementation default
    		documentBuilders.push(db);
    	}
    }

    public static Document newDocument() 
         throws ParserConfigurationException
    {
    	DocumentBuilder db = getDocumentBuilder();
    	Document doc = db.newDocument();
    	releaseDocumentBuilder(db);
    	return doc;
    }

    public static Document newDocument(InputSource inp)
        throws ParserConfigurationException, SAXException, IOException
    {
    	DocumentBuilder db = getDocumentBuilder();    	
        db.setEntityResolver(new DefaultEntityResolver());
        db.setErrorHandler( new ParserErrorHandler() );
        Document doc = db.parse(inp);
        releaseDocumentBuilder(db);
        return doc;
    }

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1597?page=comments#action_53886

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Sun, 10 Oct 2004 7:24 PM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1597) Reponse time increases with load for axis

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Anand Nair
    Created: Tue, 12 Oct 2004 11:03 AM
       Body:
Any update on this?
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1597?page=comments#action_53948

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Tue, 12 Oct 2004 11:03 AM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1597) Reponse time increases with load for axis

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Jongjin Choi
    Created: Sun, 10 Oct 2004 7:01 PM
       Body:
Dims and all axis developers.

In XmlUtils.java, the Axis reuses the SAX Parsers using Stack.

What about reusing DocumentBuilder?
Accroding to DocumentBuilderFactory's javadoc, the DocumentBuilderFactory object should be synchronized to make DocumentBuilder from it. 
I think it may take long to create a new DocumentBuilder from DocumentBuilderFactory.

This can be a cause for Anand's case. If Axis reuse the DocumentBuilder like SAXParser, the synchornization to DocumentBuilder stack is needed but in the case where 
free DocumentBuilder remains in the stack, we can avoid making new DocumentBuilder every time and can get the performance gain.



---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1597?page=comments#action_53883

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1597

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1597
    Summary: Reponse time increases with load for axis
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.1

   Assignee: 
   Reporter: Anand Nair

    Created: Sun, 10 Oct 2004 3:39 PM
    Updated: Sun, 10 Oct 2004 7:01 PM
Environment: ALL

Description:
On an average load on the server , the thread dump is indicating many ( ~250wait for monitor at :


at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:318)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:335)
        at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:209)





---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira