由于使用 win03 作为服务器,于是优先考虑使用 apache 作为 weblogic 的前端代理。
工具:
apache 2.2
weblogic 10.3.0
nginx 1.7.3
win7
测试工具:apache ab
执行测试指令:ab -n50000 -c100 http://localhost:8080/TestWeb/info.html
apache性能测试如下:
单独的 weblogic 性能测试:
堂堂apache并发100的情况下,竟然慢成这样,访问一个小小的静态页面,竟然要1秒多左右,还不如单独一台 weblogic 处理静态页面的效率,1/5 秒.
注:
weblogic 我已经优化过了,优化了线程处理和加大内存。
apache 我也已经优化过了
ThreadsPerChild 500
MaxRequestsPerChild 5000
然后我将 apache 与 weblogic 整合. 测试数据如下:
效率太低太慢了,请问各位,apache 真的有如此不堪?虚心求指教!我也不相信apache会如此弱爆了,为什么这么说?
请看 nginx 的效率,大家就知道了.
没有优化过的,最新的 1.7.3 version nginx.
我还是准备使用 nginx 了,没办法,效率太高,有想法或有意见的同学请留言~
相关推荐
php apache/nginx php apache/nginx
详细讲解apache/tomcat和nginx的区别,可以充分掌握他们的应用场景
vi /etc/init.d/nginx 修改nginx后 chmod +x /etc/init.d/nginx /sbin/chkconfig nginx on sudo /sbin/chkconfig --list nginx /etc/init.d/nginx start
Nginx 问题 之 nginx: [emerg] unknown directive "echo" in /weblogic/nginx/conf/nginx.conf:43-附件资源
kubernetes的quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.20.0镜像包,版本为v0.20.0。文件先解压,之后得到nginx-ingress-controller.0.20.0.tar
所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下 2. 程序文件在/usr/sbin/nginx 3. 日志放在了/var/log/nginx中 4. 并已经在/etc/init.d/下创建了启动脚本nginx 5....
Nginx常见的错误和解决方法,1、Nginx 常见启动错误 有的时候初次安装nginx的时候会报这样的错误 sbin/nginx -c conf/nginx.conf 报错内容:sbin/nginx: error while loading shared libraries: libpcre.so.1: ...
Restarting nginx daemon: nginxcat: /usr/local/nginx/logs/nginx.pid: No such file or directorykill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec … or kill -l [sigspec]nginx not ...
等保常见中间件测评指导书(供参考),也可作为中间件加固参考使用
ExecStartPre=/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf #ExecReload=/usr/local/nginx/sbin/nginx -s ...
/application/nginx/sbin/nginx ss -lntup|grep nginx ps -ef|grep nginx|grep -v grep netstat -lntup|grep nginx|grep -v grep curl 127.0.0.1 mkdir -p /server/scripts cd /server/scripts/ fpm -s ...
$ docker cp lw-nginx:/etc/nginx/nginx.conf /colorfulfrog/nginx/config –-将容器中的nginx.conf拷贝到宿主目录下 $ docker cp lw-nginx:/usr/share/nginx/html /colorfulfrog/nginx –-将容器中的html目录内容...
Linux服务器安装、weblogic12c安装、nginx、apache、Oracle等离线安装手册
一个开源的Linux下运行的命令行工具,能将Apache的配置文件转换成相应的Nginx的配置文件。本工具能自动将Apache Web服务器的配置文件转化成Nginx的配置文件,减少...官网:https://github.com/leeleander/apache2nginx
登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() “/usr/local/nginx/logs/nginx.pid” failed (2: No such file or directory)错误,进到logs文件发现的确没有nginx....
nginx=”/usr/local/nginx/sbin/nginx” //修改成nginx执行程序的路径。 NGINX_CONF_FILE=”/usr/local/nginx/conf/nginx.conf” //修改成nginx.conf文件的路径。 保存后设置文件的执行权限 [root@localhost ~]# ...
nginx-1.18安装步骤 附件上传至服务器/opt/nginx cd /opt/nginx tar zxvf zlib-1.2.11.tar.gz cd zlib-1.2.11 ./configure make make install tar zxvf pcre-8.40.tar.gz cd pcre-8.40 ./configure make make ...
Apache2Nginx是一个开源的linux下运行的命令行工具.它可以把apache 配置文件转换成对应的nginx 配置文件.对于一般的功能. 比如目录 url重写.这都从测试来看.基本上不存在问题.对于不能转换的.会有注释在转换好的配置...