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 6689215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:29:37+00:00 2026-05-26T05:29:37+00:00

I am currently developing an application that processes several files, containing around 75,000 records

  • 0

I am currently developing an application that processes several files, containing around 75,000 records a piece (stored in binary format). When this app is ran (manually, about once a month), about 1 million records are contained entirely with the files. Files are put in a folder, click process and it goes and stores this into a MySQL database (table_1)

The records contain information that needs to be compared to another table (table_2) containing over 700k records.

I have gone about this a few ways:

METHOD 1: Import Now, Process Later

In this method, I would import the data into the database without any processing from the other table. However when I wanted to run a report on the collected data, it would crash assuming memory leak (1 GB used in total before crash).

METHOD 2: Import Now, Use MySQL to Process

This was what I would like to do but in practice it didn’t seem to turn out so well. In this I would write the logic in finding the correlations between table_1 and table_2. However the MySQL result is massive and I couldn’t get a consistent output, sometimes causing MySQL giving up.

METHOD 3: Import Now, Process Now

I am currently trying this method and although the memory leak is subtle, It still only gets to about 200,000 records before crashing. I have tried numerous forced garbage collections along the way, destroying properly classes, etc. It seems something is fighting me.

I am at my wits end trying to solve the issue with memory leaking / the app crashing. I am no expert in Java and have yet to really deal with very large amounts of data in MySQL. Any guidance would be extremely helpful. I have put thought into these methods:

  • Break each line process into individual class, hopefully expunging any memory usage on each line
  • Some sort of stored routine where once a line is stored into the database, MySQL does the table_1 <=> table_2 computation and stores the result

But I would like to pose the question to the many skilled Stack Overflow members to learn properly how this should be handled.

  • 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-26T05:29:38+00:00Added an answer on May 26, 2026 at 5:29 am

    I concur with the answers that say “use a profiler”.

    But I’d just like to point out a couple of misconceptions in your question:

    • The storage leak is not due to massive data processing. It is due to a bug. The “massiveness” simply makes the symptoms more apparent.

    • Running the garbage collector won’t cure a storage leak. The JVM always runs a full garbage collection immediately before it decides to give up and throw an OOME.


    It is difficult to give advice on what might actually be causing the storage leak without more information on what you are trying to do and how you are doing it.

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

Sidebar

Related Questions

I'm currently in the process of developing a GWT 1.7.1 application that deals with
I'm currently developing an application that is comprised of five separate executables that communicate
I'm currently developing an application that will be run on local network in B2B
I'm currently developing a PHP application that's using an Access database as a backend.
I am currently developing a web application that receives data from an on-site database.
I'm currently developing an Android application that fetches images using http requests. It would
In the small application that I'm currently developing for a customer I need to
I am developing an application that currently has a View Controller (call it ViewControllerX).
Currently, I'm developing an application that depends on (and thus connects to) various databases
I am currently developing a Rails application using a database that was designed before

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.