Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Performance issues within our application

Ganeshpandi EswaranMar 14 2024 — edited Mar 14 2024

Dear Team,

We are currently facing an issue where memory is not being reduced, and we suspect that garbage collection is not functioning properly at the application server level. The application server, with 64GB of RAM and 8 CPUs, is running JDK 17. Despite our attempts to address the problem by applying the following JVM parameters, which previously worked flawlessly, we are still encountering the issue unexpectedly

JVM parameters:
export JAVA_OPTS='-server -Xms1g -Xmx48g
-XX:+UseG1GC -XX:SurvivorRatio=3
-XX:ConcGCThreads=4
-XX:ThreadStackSize=512
-XX:ParallelGCThreads=4
-XX:MaxMetaspaceSize=2g
-XX:MaxGCPauseMillis=150000
-XX:+HeapDumpOnOutOfMemoryError

Could you please suggest any additional parameters or adjustments that could help resolve this issue permanently?

Your prompt response would be greatly appreciated.

Note: Despite reducing the Xmx parameter from 48GB to 8GB, we are still encountering out-of-memory errors. Surprisingly, we have observed fluctuations in memory usage, with occasional increases and decreases as expected.

Thank you.
Best regards,
Ganeshpandi Eswaran.

Duplicate Post
This post has already been added here:
Closing since it is a duplicate post
Marked by L. Fernigrini 11 months ago

Comments

thatJeffSmith-Oracle Feb 13 2025

Your ENTRA users will get authenticated via JSON Web Tokens, and their Entra roles will determine which ORDS REST APIs they can hit.

When they hit an endpoint, it'll execute code in the database as the database user that owns the schema where the REST API is defined, not as Entra defiend end user. In fact, the Entra users won't have accounts in the database (they could, but wont' need to).

The :current_user field as far as ords is concerned would be the corresponding oauth2 client or JWT issued for the authorizied session.

Your prehook should be able to alter the session to set the context that would put your RLS/VPD security policy in play.

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Marked as duplicate
Added on Mar 14 2024
0 comments
237 views