question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tomcat 8.5.15: bad jaxb performance in comparison with Tomcat 8.0.32

See original GitHub issue

Hello,

We have a microservice transforming json input to xml output. Jaxb 2.0 is used to create the xml. After an upgrade from version 1.3.3 to 1.5.4 we noticed bad performance. Jaxb2RootElementHttpMessageConverter is used to transform the java bean to an xml. Jackson is used to transform the json input into a pojo. With a profiler we noticed that following call’s were causing the bad performance: JAXBContext.newInstance(<some class>) & SchemaFactory.newInstance(<some schema string>). Both are searching for classes on the classpath.

Could this be related to #9670 ?

The solution was forcing spring boot to use tomcat 8.0.32 instead of tomcat 8.5.15

Regards,

Peter

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
markt-asfcommented, Jul 20, 2017
0reactions
pfourneacommented, Jul 21, 2017

@wilkinsona @markt-asf thank you both!

Regards,

Peter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache Tomcat 8 (8.5.84) - Changelog
Improve the performance of the ImportHandler in the Expression ... Fix JNDIRealm pooling problems retrying on another bad connection.
Read more >
Why is Tomcat looking for jaxb jars in the wrong places?
The jaxb-impl. jar file contains a classpath reference to jaxb-core. jar hence Tomcat looks for it in the same directory as the jaxb-impl....
Read more >
subject:"jasper" - The Mail Archive
Re: embeded tomcat apache-jasper dependency ... A while ago, we upgraded to 8.5.15 and I think at that stage, the above ant task ......
Read more >
Upgrade to Tomcat 8.5.32 necessary - Jira Atlassian
The new vulnerabilities reported by apache are very serious. They can be patched by Tomcat 8.5.32 only. Currently the latest Tomcat available in...
Read more >
JRebel Changelog | JRebel & XRebel by Perforce
Improvement: improved compatibility when enabling JRebel with VS Code ... Bug fix: fixed an integration issue with Tomcat and Remote Server Support that ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found