1
我在C中使用Openssl庫實現了一個簡單的HTTPS服務器。單個連接的堆使用情況似乎非常巨大。以下是可能需要大的堆空間某些對象:Openssl的堆內存使用情況
char readbuffer[8192]
SSL_CTX
SSL
這是正常的嗎?有沒有一種工具可以找出哪個對象需要多少堆?
HEAP SUMMARY:
==7644== in use at exit: 78,502 bytes in 2,366 blocks
==7644== total heap usage: 3,548 allocs, 1,182 frees, 3,139,689 bytes allocated
==7644==
==7644== LEAK SUMMARY:
==7644== definitely lost: 0 bytes in 0 blocks
==7644== indirectly lost: 0 bytes in 0 blocks
==7644== possibly lost: 0 bytes in 0 blocks
==7644== still reachable: 78,502 bytes in 2,366 blocks
==7644== suppressed: 0 bytes in 0 blocks