curl-library
RE: Curl HTTPS memory usage
Date: Sun, 6 May 2012 11:59:01 +0000
Hi Weng,
Even without knowing anything about your app, it does make sense for HTTPS to use more memory than HTTP, since you have the TLS connection on top of what HTTP usually does. The TLS connection will need memory for encrypting/decrypting packets, remembering the server certificates etc.
> curlm is set to use most 10 connection, seems more connection actually used, memory will be higher, and
> finally it takes me about 26MB memory when memory usage is finally stable on a 64-bit Linux.
Now, about the actual values you see, I'm guessing 26MB is the memory consumption of your whole application. It does seem a bit high for just 10 connections. I've been able to run ~750 concurrent connection with only 600 MB taken by the application (which does much more that HTTPS connections), but the overhead might decrease with the increase in the number of connections.
Perhaps you want to test the memory usage with a minimal application that does nothing else except the actual HTTPS requests?
Regards,
Andrei
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-05-06