How to enable compression of server's http response in JBoss EAP 6? Use GZIP

Solution Verified - Updated -

Issue

  • How can we enable the Http Compression for HttpServletResponse in JBoss EAP6?
  • Is GZIP compression still supported in EAP 6, and if so, how should implement it?
  • Is GZIP for JSON response can be done using -Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=ON?
  • How to enable gzip compression in JBoss EAP 6?
  • GZIP Compression not working. JSON responses returned from the servlets in the application is not compressed even when I have added the following to the standalon-full.xml:
<property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" value="force"/>
<property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION_MIME_TYPES" value="text/javascript,text/css,text/html,text/xml,text/json,application/json,text/plain"/>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

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