v1.5.9 compiled size is 8x larger than v1.5.8

Ruslan Ermilov ru at nginx.com
Wed Jan 22 20:23:25 UTC 2014


On Wed, Jan 22, 2014 at 02:56:38PM -0500, Jim Popovitch wrote:
> I'm seeing a strange problem with v1.5.9, the compiled binary is 8
> times larger than it was on v1.5.8.   My build environment (debian) is
> the same that I've used for v1.5.8.
> 
> Production:
> ~$ nginx -V
> nginx version: nginx/1.5.8
> TLS SNI support enabled
> configure arguments: --prefix=/etc/nginx
> --conf-path=/etc/nginx/nginx.conf
> --error-log-path=/var/log/nginx/error.log
> --http-client-body-temp-path=/var/lib/nginx/body
> --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
> --http-log-path=/var/log/nginx/access.log
> --http-proxy-temp-path=/var/lib/nginx/proxy
> --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
> --with-pcre-jit --with-http_gzip_static_module --with-http_ssl_module
> --with-http_spdy_module --with-ipv6 --without-http_browser_module
> --without-http_geo_module --without-http_limit_req_module
> --without-http_limit_zone_module --without-http_memcached_module
> --without-http_referer_module --without-http_scgi_module
> --without-http_split_clients_module --with-http_stub_status_module
> --without-http_ssi_module --without-http_userid_module
> --without-http_uwsgi_module
> ~$ ls -al /usr/sbin/nginx
> -rwxr-xr-x 1 root root 613080 Dec 30 19:15 /usr/sbin/nginx
> 
> 
> Testbed:
> ~$ nginx -V
> nginx version: nginx/1.5.9
> TLS SNI support enabled
> configure arguments: --prefix=/etc/nginx
> --conf-path=/etc/nginx/nginx.conf
> --error-log-path=/var/log/nginx/error.log
> --http-client-body-temp-path=/var/lib/nginx/body
> --http-fastcgi-temp-path=/var/lib/nginx/fastcgi
> --http-log-path=/var/log/nginx/access.log
> --http-proxy-temp-path=/var/lib/nginx/proxy
> --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid
> --with-pcre-jit --with-http_gzip_static_module --with-http_ssl_module
> --with-http_spdy_module --with-ipv6 --without-http_browser_module
> --without-http_geo_module --without-http_limit_req_module
> --without-http_limit_zone_module --without-http_memcached_module
> --without-http_referer_module --without-http_scgi_module
> --without-http_split_clients_module --with-http_stub_status_module
> --without-http_ssi_module --without-http_userid_module
> --without-http_uwsgi_module
> ~$ ls -al /usr/sbin/nginx
> -rwxr-xr-x 1 root root 5226396 Jan 22 16:11 /usr/sbin/nginx
> 
> 
> What could be causing the increased binary size?
> 
> Thank you,

Could it be that you lost some shared library that nginx uses?

For the starters, compare the outputs of "file /usr/sbin/nginx"
(are both binaries are stripped) and "ldd /usr/sbin/nginx" (do
they show the same shared libs)?



More information about the nginx-devel mailing list