How to configure Gzip for JBoss?---refer

Question:

I think to try to speed up my Web App by reducing the size of transferred data. For example, in Nginx there is a special module. How to enable compression for JBoss server?

Answer:

JBoss AS version 6 or lower

To enable gzip compression, settings need to be added to your existing HTTP connector. 
Located at /server/default/deploy/jbossweb.sar/server.xml:

<!-- A HTTP/1.1 Connector on port 8080 -->
<Connector protocol="HTTP/1.1" port="${jboss.web.http.port}"
        address="${jboss.bind.address}" redirectPort="${jboss.web.https.port}"

compression="force"
compressionMinSize="512"
noCompressionUserAgents=""
compressableMimeType="text/html,text/xml,text/css,text/javascript"
/>

JBoss AS 7.0.x

JBoss 7.0.x - 7.1.0 have no support for gzip compression build in
See also issue report at: https://issues.jboss.org/browse/AS7-2991

One way to add gzip compression in JBoss 7.0 is to add is as filter. 
For details: https://code.google.com/p/webutilities/wiki/CompressionFilter

JBoss AS 7.1.1

Just recently JBoss finished adding gzip compression to JBoss. As of version 7.1.1Final, gzip compression is supported out of the box again. To enable, add to the server launch params:

-Dorg.apache.coyote.http11.Http11Protocol.COMPRESSION=on

referene from:http://stackoverflow.com/questions/12590521/how-to-configure-gzip-for-jboss

时间: 2024-10-24 17:04:31

How to configure Gzip for JBoss?---refer的相关文章

configure JAAS for jboss 7.1 and mysql--reference

Hello all, In this tutorial we are going to configure JAAS for jboss 7.1 and mysql for Form based authentication to be used in a web application. . We have already covered how toconfigure jaas for tomcat 7 and mysql.The difference between these is du

Linux-CentOS下Couchbase的安装

按照红色加粗字体步骤即可:1.下载[[email protected] test]# wget http://packages.couchbase.com/releases/2.0.0/couchbase-server-enterprise_x86_64_2.0.0.rpm--2016-05-16 03:06:33-- http://packages.couchbase.com/releases/2.0.0/couchbase-server-enterprise_x86_64_2.0.0.rpm

CDB or PDB打开归档

11g 怎么开归档,多租户就怎么打开归档就好了. APPLIES TO: Oracle Database - Enterprise Edition - Version 12.1.0.1 and later Information in this document applies to any platform. GOAL Running 12c database and need to configure archive log, shall we configure it in PDB or

JBOSS EAP实战(2)-集群、NGINX集成、队列与安全

JBOSS HTTP的Thread Group概念 JBOSS是一个企业级的J2EE APP Container,因此它和任何一种成熟的企业级中间件一样具有Thread Group的概念.所谓Thread Group就是一个HTTP队列机制,利用Thread Group在JBOSS内可以设置如"阻断","升级","降级"等机制.来看一个这样的实际应用场景:当你的JBOSS连着一堆核心应用时,此时突然你的HTTP的并发请求在某一个点激增,如果把这些

Class loading in JBoss AS 7--官方文档

Class loading in AS7 is considerably different to previous versions of JBoss AS. Class loading is based on the JBoss Modules project. Instead of the more familiar hierarchical class loading environment, AS7's class loading is based on modules that ha

Apache+jboss群集部署

Jboss default方式上的Cluster配置[二] - 操作系统http://www.myexception.cn/operating-system/862858.html Jboss default方式下的Cluster配置[二]Install Apache Install Unzip gzip -d httpd-2.2.9.tar.gz tar xvf httpd-2.2.9.tar Config cd httpd-2.2.9 ./configure --prefix=/opt/ap

Haproxy Configure File

---------------------- HAProxy Configuration Manual ---------------------- version 1.5.11 willy tarreau 2015/02/01 This document covers the configuration language as implemented in the versionspecified above. It does not provide any hint, example or

Enable Access Logs in JBoss 7 and tomcat--转

JBoss 7 is slightly different than earlier version JBoss 5 or 6. The procedure to enable access logs in JBoss 7 is also changed and you must be familiar on how to enable access logs in JBoss 7. Go to JBoss/standalone/configuration folder Add followin

Nginx 开启Gzip压缩的方法(非常的详解)

gzip是GNUzip的缩写了,它的主要作用就是用来减轻服务器的带宽问题了,如一个100KB的文件如果开启gzip之后可以变成20KB左右哦,是不是很有吸引力呀,下面一起来看看吧. 查看ngix编译参考,是否启用了gzip模块,运行命令:  代码如下 复制代码 /path/to/binary/nginx -V (我的nginx在PATH目录里,故命令中可以省略nginx所在的目录),写为nginx -t 即可,下文从略写注意其中是否 --with-http_gzip_static_module,