0

I am saving blob files in the mysql database in my springmvc with hibernate project.But after several blob files has uploaded i got an error in my project as out of memmory error java heap space.Can any one help me to resolve this

4
  • Why do you save files directly in the form of blob? Is it absolutely necessary? You should avoid it and store them in a directory instead, if there is no need to store them in blob. Commented Apr 17, 2012 at 2:36
  • Can you design your project to not store blobs in your MySQL database? Blobs are incredibly inefficient and cursorily sounds like the blobs are using up all your cache. Commented Apr 17, 2012 at 2:37
  • 1
    Sure, let me just haul out my magic crystal ball and examine your code via remote telepathic viewing... ummm. ... it's that extra semicolon on line 3562463235423523 of your code. Commented Apr 17, 2012 at 2:37
  • @MarcB Why don't you save comments like those for reddit. They help nobody. Commented Apr 8, 2014 at 4:46

1 Answer 1

1

The contents of your files aren't getting released by your application. Somehow a reference to them remains in memory. You can use a profiler to track down where this reference exists.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.