-2

I have quartz scheduler that runs 24 hours in background. Now I am not even able to run normal application. It gives me the above error.

Scheduler Description:

There is a scheduler. It run every 2 hours and calls a job class. Job class fetches a list of client and sync all the data of each client from one system to another. For each client, this process takes maximum 10 minutes. I have added the scheduler in web.xml file inside listener tag.

Can anyone let me know how can I resolve this issue?

Neha
  • 143
  • 4
  • 19
  • Possible duplicate of ["insufficient memory for the Java Runtime Environment " message in eclipse](http://stackoverflow.com/questions/22805552/insufficient-memory-for-the-java-runtime-environment-message-in-eclipse) – Thomas Kläger Jun 13 '16 at 05:14
  • You give very little details, so everything is guesswork. It could be that your quartz scheduler starts background processes that never finish and so use up all resources of your computer. – Thomas Kläger Jun 13 '16 at 05:37
  • Please provide more details about the applications that are running and the load that you are generating on the server – Ankur Aggarwal Jun 13 '16 at 05:46
  • Please check above. I have edited my post with description of what my scheduler does. – Neha Jun 13 '16 at 05:58

1 Answers1

-1

The message above means that you're running so many programs on your PC that there is no memory left to run one more. This isn't a Java problem and no Java option is going to change this.

Use the Task Manager of Windows to see how much of your 4GB RAM is actually free. My guess is that somewhere, you have a program that eats all the memory. Find it and kill it.

AxeManTOBO
  • 487
  • 1
  • 4
  • 17
  • I have killed the tomcat instance and restarted. Now it is working fine. Can you tell me why do this problem occur? – Neha Jun 13 '16 at 05:38
  • If this answer helped you please mark this answer as the one it solved your question – AxeManTOBO Jun 13 '16 at 08:20