Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Lighttpd 1.4.22/PHP 5.2.9 hardlocking the system

0 views
Skip to first unread message

Jacob Myers

unread,
Jun 1, 2009, 7:18:14 AM6/1/09
to freebs...@freebsd.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I'm running lighttpd 1.4.22 and PHP 5.2.9 on FreeBSD 7.2-RELEASE. When
uploading files > 1 MB in size or so via PHP, the box then hard locks.
SSH and HTTP become unavailable, and apparently console logins don't
work; however, the box can still be pinged. So far I've been able to
reproduce this issue on FreeBSD/i386 and FreeBSD/amd64.

I have no clue how to debug this, but I'm willing to help :). Sadly, I
don't have physical access to a FreeBSD machine atm to help debug this
with, but I'm working on that.

- -- Jacob
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkojuPUACgkQnokOSaNFCAYVmgCg4CtC68Wo9Aa7jWHXjnvzs5oa
V2cAnRzXhMXucY0G7hY0wyTSmE/QpfCQ
=s2Id
-----END PGP SIGNATURE-----

Steven Hartland

unread,
Jun 1, 2009, 8:20:55 AM6/1/09
to Jacob Myers, freebs...@freebsd.org
We had issues when running lighttpd which indicated an issue with kqueue.

Disabling lightttpd's use of kqueue using the following prevented this.
server.event-handler = "poll"

In the logger term we have moved to nginx.

Regards
Steve

> _______________________________________________
> freebs...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-port...@freebsd.org"
>

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it.

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postm...@multiplay.co.uk.

Jacob Myers

unread,
Jun 1, 2009, 9:20:32 AM6/1/09
to freebs...@freebsd.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steven Hartland wrote:
> We had issues when running lighttpd which indicated an issue with kqueue.

After doing some experimentation of my own in VirtualBox, I've traced
the issue to sendfile(2). I changed server.network-backend to "write"
and "writev" and the issue went away. Changing it to freebsd-sendfile
caused the issue.

>
> Disabling lightttpd's use of kqueue using the following prevented this.
> server.event-handler = "poll"
>

Hmm... maybe there's some weird interaction with sendfile/kqueue going
on here. *shrug*

- -- Jacob

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoj1aAACgkQnokOSaNFCAb95gCfT4J+dZ7gBbAhbHDlQwqgtoYk
VtcAoOOlmFFc4wc7YA/btiZTNkMhlDwr
=rKQM
-----END PGP SIGNATURE-----

0 new messages