cancel
Showing results for 
Search instead for 
Did you mean: 

Keep getting Warning More than 80% of the Java heap memory is being used.

Highlighted
Occasional Contributor

Keep getting Warning More than 80% of the Java heap memory is being used.

Keep seeing the following message when the test reads JMS message: 

  • Thu Nov 29 10:21:00 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions

I have updated vmoptions file with the following 

-XX:MinHeapFreeRatio=20
-XX:MaxHeapFreeRatio=40
-Xms128m
-Xmx8192m

 

After updating the file and restarting Ready API i still have the same issue 

7 REPLIES 7
Highlighted
Community Hero

ReadyAPI can and will consume a LOT of memory. I have mine set to use 24GB of RAM and still see this error. I have yet to find a solution outside of:

 

  1. Restart ReadyAPI often.
  2. Only keep open the projects you need to.
  3. Set preferences to close projects on start.
  4. Use a groovy script that runs "System.gc()" to try to force ReadyAPI to garbage collect.
  5. Deleting the contents of the .readyapi\logs folder

 

 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
Highlighted
Moderator

Hi all,

 

Thank you, @msiadak, I love the list of the tips, they are really useful!

 

@nmowbray, did you have a chance to try the above steps? Does this work for you? If so, could you please mark the reply with the steps as a Solution so that other users could easily find it in the future?

Otherwise, if the error persists, our support engineers also suggest that you try disabling unused tools:
1. Create a text file with the "disabled-tools.txt" name and the following content:
- ServiceVirtualizationModule
- LoadUINGModule
- SecurityModule
2. Put this file into the C:\Users\<User>\.readyapi folder.
3. Restart R!API.
Example: https://www.screencast.com/t/j17Px9ioq

 

We are looking forward to hearing from you!

 


Olga Terentieva
SmartBear Assistant Community Manager

Highlighted
Occasional Contributor

After doing the steps @msiadak suggested I am still getting the same warning 

Highlighted
Occasional Contributor

After doing the steps from @Olga_T still getting the warning 

Highlighted
Moderator

Hi @nmowbray,

 

Does the warning appear for all your projects or for some specific one? If it’s one specific project, it is worth contacting our Support team and providing them with the project so that they could investigate this.

 

Alternatively, our engineers also recommend that you try clearing the workspace and adding all the projects again there.

Please let us know your results.

 

 


Olga Terentieva
SmartBear Assistant Community Manager

Highlighted
Occasional Contributor

Hi @Olga_T

 

It happens on all projects when using the application on Mac OS, we have not seen the problem for quite some time on Windows OS. 

 

Seems to be an issue when using oracle driver: 

  • The JDBC driver [oracle.jdbc.driver.OracleDriver] is already registered.
  • Wed Dec 05 17:27:02 MST 2018: ERROR: More than 95% of the Java heap memory is being used. The test results may be impacted. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:02 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:03 MST 2018: ERROR: More than 95% of the Java heap memory is being used. The test results may be impacted. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:03 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:04 MST 2018: ERROR: More than 95% of the Java heap memory is being used. The test results may be impacted. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:04 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:05 MST 2018: ERROR: More than 95% of the Java heap memory is being used. The test results may be impacted. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:05 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:06 MST 2018: ERROR: More than 95% of the Java heap memory is being used. The test results may be impacted. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:06 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:07 MST 2018: ERROR: More than 95% of the Java heap memory is being used. The test results may be impacted. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:07 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:08 MST 2018: ERROR: More than 95% of the Java heap memory is being used. The test results may be impacted. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:08 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:09 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:10 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:11 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:12 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:13 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:14 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:15 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
  • Wed Dec 05 17:27:16 MST 2018: WARN: More than 80% of the Java heap memory is being used. It is recommended that you increase the value of the VM option -Xmx or -XX:MaxHeapSize in the file ReadyAPI.vmoptions.
Highlighted
Moderator

Hi @nmowbray,

 

Thanks for the explanation. Our engineers said that this may be caused by a large database you are using, and they suggest creating a new support ticket so that they could investigate the issue.
It would be great if you could update us here on your results when the investigation is over.

 

Thanks in advance.


Olga Terentieva
SmartBear Assistant Community Manager

New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get a full Raw JMS request

Participate!

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors