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

  • Home
  • SEARCH
  • 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 934133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:56:58+00:00 2026-05-15T20:56:58+00:00

I am trying to run Hibernate Search on database on a table with 12,500,000

  • 0

I am trying to run Hibernate Search on database on a table with 12,500,000 records.

On startup, Hibernate Search queries the database to obtain the schema information.

The problem is that I get OutOfMemory: heap size exception.

I read around, and found out that JDBC connector of MySQL puts queries on JAVA heap memory and it’s a bug.

Is there a workarround for this bug?

I am using 5.1 connector.

Please see my post to Hibernate forum where they write that there is a bug in MySQL
Hibernate Search Forum

The question is how can I work arround it?

  • 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-05-15T20:56:58+00:00Added an answer on May 15, 2026 at 8:56 pm

    I found the solution.

    In MySQL I had to add to connection string:

    &useServerPrepStmts=true&useCursorFetch=true
    

    This option enables streaming results by default.

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

Sidebar

Related Questions

I was trying to create Hibernate Validator bean, and run into this problem creating
I'm trying to run my web application using Spring, Hibernate and Apache Tiles. It
I'm trying to run tests for my webapp. I've used Spring and Hibernate for
I'm using Hibernate 4.0.1.Final. I'm trying to run a JUnit test on my DAO
I am trying to a run an application with Hibernate annotation. I am getting
I'm trying to make work the example from hibernate reference. I've got simple table
I was dealing with hibernate, trying to figure out the run-time class behind proxied
I'm trying to run a java app that uses Hibernate and MS SQL Server
I'm trying to run an NHibernate over sqlite. i have two projects: 1. Orange.Database
I'm trying to use hibernate in a sample, but cannot run it. Here is

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.