Extended logging of JPA L2 cache usage with thread info. (#1065)

This commit contains extension to the EclipseLink logging to print information about persistence cache operations and usage.
It prints info when entity is stored, refreshed, removed, invalidated in the cache and info about cache hits/miss.
This feature is controlled by new "eclipselink.cache.extended.logging property" and generates messages at the FINEST log level.
It prints additional message if one thread stored item into cache and different picking item.

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
9 files changed
tree: 4aa1ee1d913d6e781458ef067a472f37ea730e5b
  1. bundles/
  2. dbws/
  3. etc/
  4. features/
  5. foundation/
  6. jpa/
  7. moxy/
  8. performance/
  9. plugins/
  10. project-admin/
  11. sdo/
  12. utils/
  13. .gitattributes
  14. .gitignore
  15. .travis.yml
  16. CONTRIBUTING.md
  17. findbugs-exclude.xml
  18. LICENSE.md
  19. NOTICE.md
  20. pom.xml
  21. pom_oracle_test_server.xml
  22. pom_test_server.xml
  23. README.md
README.md

EclipseLink 3.0.0 Master Build Status

EclipseLink 2.7.x 2.7.x  Build Status

EclipseLink

The EclipseLink project's goal is to provide a complete persistence framework that is both comprehensive and universal. It will run in any Java environment and read and write objects to virtually any type of data source, including relational databases, XML, JSON, or EIS systems. EclipseLink will focus on providing leading edge support, including advanced feature extensions, for the dominant persistence standards for each target data source; Jakarta Persistence for relational databases, Jakarta XML Binding for XML, Jakarta Connectors for EIS and other types of legacy systems, and Service Data Objects (SDO).

This project is part of the EclipseLink project.

License

EclipseLink is dual licensed under an EPL 2.0 and EDL 1.0 license.

Contributing

We use contribution policy, which means we can only accept contributions under the terms of Eclipse Contributor Agreement.

Links

Issue/bug trackers

Hint: If it‘s possible, it helps if some test reproducer is attached to the new bug. If it’s not possible, attached entities and persistence.xml file should help too for JPA related bugs. For MOXy, entities and XML or JSON resources/files are welcome.