ipfs-shipyard / java-ipfs-http-client

A Java implementation of the HTTP IPFS API
MIT License
536 stars 244 forks source link

When a large file is uploaded, the heap resources are not released #220

Closed liry-code closed 1 year ago

liry-code commented 1 year ago

Hello, I would like to ask a question. In the Springboot project, use threads to upload a file of about 2G in ipfs, after the file is uploaded and the thread ends.

The old generation resources in the heap cannot be released and always exist in the old generation.

The dump file of the JVM stack information was reviewed by the tool, and it was found that the unreleased resources in the old zone may exist in the sun.net.www.http.PosterOutputStream class.

This is the operating environment information: JAVA: 1.8 java-ipfs-http-client: 1.3.3

Dump log analysis:

image

image

image

image

image

Expecting a reply !

kevodwyer commented 1 year ago

Are you able to provide a minimal test case that demonstrates the problem? In the stacktrace i can only see a 1 line reference to io.ipfs.api.Multipart.finish()

liry-code commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。