CXF fills up /tmp partition with SOAP attachments

Solution Unverified - Updated -

Issue

I have a JAX-WS endpoint that regularly receives MTOM attachments that are greater than 100MB. As expected, CXF writes these attachments to the /tmp folder to reduce the JVM memory/heap usage during runtime.

The problem is that CXF often does not clean up the attachment files from the /tmp directory. I see lots of files with names like cxf-tmp-250564, where the number at the end is random.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.1.x
    • 5.2
    • 6.x
  • JBossWS-CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content