Skip to main content
Level 4
2月 11, 2019 6:00 下午 UTC
已解决

Custom RSS Feed causing memory issue

A custom RSS feed gets regenerated with a scheduler which runs everyday to fetch updates of latest content. It does not use a workflow for any generation. These are simple xml files with custom rss template defined, saved at /content/*/Feed.xml. The scheduler runs on Publish instances. These xml files are getting saved at /mnt/tmp directory which is causing disk space issues on publish, where, for a certain period, the size of /mnt/tmp is going beyond 20 GB. How/Why are these xml files getting saved at /mnt/tmp directory? AEM v6.3.2.2

此主题已关闭回复。
joerghoh
joerghoh回答
Adobe Employee
2月 11, 2019 8:10 下午 UTC

can you check what directory is used as directory for temporary files? It's either specified by the system property "java.io.tmpdir" or by environment variables.

I think that these RSS files are created initially on disk in temporary files and then copied into the repository, but not properly closed on the filesystem.

Jörg

6回复

smacdonald2008
Level 10
2月 11, 2019 6:04 下午 UTC

In your thread title - you said this is a custom RSS feed. Is this a custom service generating these files?

翻译
Berus作者
Level 4
2月 11, 2019 6:06 下午 UTC

Yes, it is a custom service that was built to generate these files.

翻译
smacdonald2008
Level 10
2月 11, 2019 6:37 下午 UTC

Is your custom service persisting the XML files at the specified JCR location?

翻译
Berus作者
Level 4
2月 11, 2019 6:50 下午 UTC

Yes, the path to JCR location is pre-defined, when the scheduler runs, the saved xml gets updated along with jcr:lastModified property, filename+".xml/jcr:content/renditions/original/jcr:content"

翻译
joerghoh
Adobe Employee
joerghohAdobe Employee回答
Adobe Employee
2月 11, 2019 8:10 下午 UTC

can you check what directory is used as directory for temporary files? It's either specified by the system property "java.io.tmpdir" or by environment variables.

I think that these RSS files are created initially on disk in temporary files and then copied into the repository, but not properly closed on the filesystem.

Jörg

翻译
Berus作者
Level 4
2月 19, 2019 5:43 下午 UTC

Thanks.

java -XshowSettings showed the java.io.tmpdir path

My service was creating binary files in tmp dir and later adding it to the node. But I forgot to delete the tmp files after.

翻译