Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Cache #152

Closed
geoase opened this issue May 20, 2022 · 2 comments
Closed

Problem with Cache #152

geoase opened this issue May 20, 2022 · 2 comments
Labels
question Further information is requested

Comments

@geoase
Copy link

geoase commented May 20, 2022

Cache files are generated on disk when I click on "Cache All" Button:
732K ./file/items-by-url_8e976504e2b7fa6bd21f6b9b87411de8fdb0989f/offheap-disk-store
8.0K ./file/items-by-url_8e976504e2b7fa6bd21f6b9b87411de8fdb0989f/value-serializer
744K ./file/items-by-url_8e976504e2b7fa6bd21f6b9b87411de8fdb0989f
728K ./file/items-by-uuid_7b54fbb14c56454535856932f90300167d70efb5/offheap-disk-store
8.0K ./file/items-by-uuid_7b54fbb14c56454535856932f90300167d70efb5/value-serializer
740K ./file/items-by-uuid_7b54fbb14c56454535856932f90300167d70efb5
1.5M ./file

But when I open a registry object in the webapp I get the following registry2restapi log:
http-nio-8080-exec-5] INFO org.ehcache.impl.internal.store.disk.OffHeapDiskStore - The index for data file ehcache-disk-store.data is more recent than the data file itself by 104ms : this is harmless.
[http-nio-8080-exec-5] INFO org.ehcache.core.EhcacheManager - Cache 'items-by-url' created in EhcacheManager.
[http-nio-8080-exec-5] INFO org.ehcache.core.EhcacheManager - Cache 'items-by-url' removed from EhcacheManager.

It takes some time for big Codelists to load. Do you think it is recaching again? If yes, why, I did not change anything.

Best
Georg

@oscar9 oscar9 added the under analysis A first analysis is performing label May 20, 2022
@oscar9
Copy link
Contributor

oscar9 commented May 20, 2022

Dear @geoase ,

Thanks for reporting the issue, an analysis is being done. We will keep you informed with our discoveries, and we will try to provide an answer as soon as possible.
Meanwhile, can you give us more information about how big this registry it is? How many items approximately do you have?

Best regards,
Óscar

@oscar9 oscar9 added question Further information is requested and removed under analysis A first analysis is performing labels Jun 3, 2022
@oscar9
Copy link
Contributor

oscar9 commented Jul 21, 2022

Dear @geoase,

We have been reviewing this issue. We have the idea that if you go to your tomcat folder and delete manually all your cache, this action would force the application to regenerate the cache again. It looks like an issue with this cache generation.

To do this, access your tomcat folder, there should exist a folder called /work/ehcache/ folder that you should delete.

Let us know if this is working for you.

Best regards,
Óscar

@oscar9 oscar9 closed this as completed Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants