Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8232221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:45:32+00:00 2026-06-07T17:45:32+00:00

Eclipse is giving Out of memory exception on my UNIX machine ,Having jdk 1.6.while

  • 0

Eclipse is giving Out of memory exception on my UNIX machine ,Having jdk 1.6.while trying to run my web application multiple times without terminating my local application server .
Then increased my heap space through vm arguments and also tried with changing Eclipse.ini.
But no use .

googled for sometime
and came to know that it is problem with the webapp classLoader multiple deployments .I am unable to find a solution for this problem .please give a solution to overcome this .

I found to use FileCleaner (FileCleaningTracker) for to avoid multiple deployment and written code in LogoutServlet.

@Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
        req.getSession().invalidate();
         FileCleaner.getInstance().exitWhenFinished();
        resp.sendRedirect("/index");
    }

But it is not working.

Thanks in advance .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T17:45:34+00:00Added an answer on June 7, 2026 at 5:45 pm

    I don’t know FileCleaner very well, but a cursory review of the javadoc states that calling exitWhenFinished() kills the background thread that deletes the files. My reading of this is that the files would then NOT be deleted.

    My guess is that your problem is really a standard problem with hot-swapping code: Out of PermGen space. This occurs because there are parts of class definitions that are never deleted, and when you stop/start the servlet, those parts accumulate in the JVM.

    The simplest answer to this problem is to create a large enough PermGen space to allow you to get work done. Try adding this to the VM args for the application server.

    -XX:MaxPermSize=128M
    

    This should allow you to work longer before running out of memory. This number can be increased depending on the amount of memory on your machine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

grails run-app from within Eclipse is currently giving me the exception below for my
I installed some plugins for Eclipse and now when it stops while loading giving
I have following code for which eclipse giving following compilation error: Multiple markers at
I am trying to compile code checked out of SVN from another developer. Eclipse
Eclipse is giving me many errors for one specific line of code says: Multiple
I am trying to run this code below while learning the java sql stuff,
I just did an update of my SDK and now eclipse is giving me
Well this is embarrassing ... I'm starting to play with the Eclipse Memory Analyzer
I'm using eclipse on a windows 7 x64 to create a new Java Application.
Eclipse is giving me a warning of the following form: Type safety: Unchecked cast

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.