RAM drive disappears

Description

I use the Lucee/ Coldfusion RAM drive to quickly perform image manipulations like thumbnailing. Often I get the error [ram:///filename] doesn't exist. The whole RAM drive disappears. After a Lucee restart everything works fine again. It looks like this error randomly appears. So creating a test case is difficult. I have 65 GB RAM on my server. I use a lot of caching.This error is haunting me since Railo 4.

Environment

Linux, Apache, Lucee, Elasticsearch

Attachments

6

Activity

Dick Goosen 23 September 2019 at 09:43

I always have to restart the service.

Zac Spitzer 23 September 2019 at 08:22

this is currently breaking trycf

https://trycf.com/gist/3f3ce789c5f8a7ac81d23561108b77e3/lucee5?theme=monokai

Ram Resource cannot recover from this.

does that mean the only way to recover from this is to restart the service?

Michael Offner 28 August 2019 at 17:07

have found the reason for this issue. in case Lucee runs out of memory it starts to delete files from the ram cache, actually the JVM does it, because we are using soft references.
Problem is, this does not happen in a organized matter.
the JVM should start deleteting file on top of the tree, so no elements (directories) that have children.
in this case the root directory “/” is deleted and the Ram Resource cannot recover from this.

workaround, make sure not to use to many files in the ram cache.

Michael Offner 28 August 2019 at 17:05

i can reproduce the issue with this code sample

Pothys - MitrahSoft 18 July 2018 at 11:20

Hi ,

Can you please check with latest version of lucee still you could able to reproduce the issue or not & post result here. It helps to improve the status of the ticket

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 12 December 2016 at 16:38
Updated 5 July 2022 at 10:12