Page 1 of 1

Subsonic on Tomcat6 Behind LightTPD Proxy

PostPosted: Wed Apr 14, 2010 6:23 pm
by wraithdu
So here's the setup I have:

Win7 Ultimate x64
Subsonic on Tomcat6
LightTPD running mod_proxy

Actually, currently I have Tomcat open directly to the web. What I'd LIKE to do is have LightTPD act as my reverse proxy (via mod_proxy) to handle the web requests and SSL. LightTPD is great about fine grained control over the requests coming in. For example I can deny requests that aren't specifically to my Subsonic server.

However I noticed when testing last night, that it seems as though LightTPD is buffering the full amount of data that it has to pass back to the connected client from Tomcat, before actually sending any of it. For example, when transcoding a song for streaming, the entire song is transcoded and buffered by LightTPD before any of it is streamed to the client. This leads to longer song start times, higher CPU usage on the server, and general sluggishness.

Now, is this just a 'feature' of LightTPD, or is it the way mod_proxy operates on any server (Apache for example)? Is there another way to achieve the same functionality as mod_proxy without this buffering issue, perhaps with another plugin or server?

Thanks!