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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:30:12+00:00 2026-05-20T19:30:12+00:00

When running the same query (SELECT with a couple of INNER JOINs) on a

  • 0

When running the same query (SELECT with a couple of INNER JOINs) on a table with 400k rows, it takes almost 30 times longer on Mac OS X, than on Linux or Windows 7. Granted, the hardware configurations are different, but not different enough to warrant such a big difference. I was able to reproduce the performance issue on several computers running Mac OS X 10.6. The weird thing is, that I got the expected performance once after killing H2 in the middle of the long query execution, and letting H2 repair the database on next startup. However, I wasn’t able to consistently reproduce this.

What I noticed on Mac OS X was that a couple of seconds after submitting the query, both CPU and disk usage falls to almost zero, and only goes back up right before returning the query results.
The test computers had the following versions of Java installed:

  • Mac OS X: Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
  • Linux: Java(TM) SE Runtime Environment (build 1.6.0_20-b02), Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode))
  • Windows: Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

All computers were running H2 1.1.117. While I know that this version is quite old, I would prefer to stick with it for now, but I need to sort out this apparently platform-specific performance issue. I have googled around for bug reports, but haven’t found anything related.

  • 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-20T19:30:12+00:00Added an answer on May 20, 2026 at 7:30 pm

    It’s very unlikely this is related to the operating system.

    If both CPU and disk usage are zero, I suggest to get a full thread dump (jps -l, and then jstack -l <pid>) to find out what the process is doing.

    Did you run ANALYZE? On newer versions of H2 (1.3.x) this is no longer required by the way.

    If this isn’t the problem, I suggest to have a look at the Database Performance Tuning documentation. I know, a lot of it is generic, but it might still help. If this still doesn’t solve the problem, please see Application Profiling and update the question with the results you found.

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

Sidebar

Related Questions

I am running the following MySQL query : select * from combinations where family_type='f597';
Assume that we have N erlang nodes, running same application. I want to share
In my application I am running the same winform in different contexts to control
I am running into the same problem as in this question: How do you
I have two web applications running in the same Tomcat Instance. In one of
A typical approach to avoid two instances of the same script running simultaneously looks
Currently I'm running several websites that have several (branded) duplicates each, in the same
I am using Linq-To-Entities to do a query which is returning only 947 rows
I'm using a query of the form: Select { ([Measures].[M1], [Time].[2000]), ([Measures].[M2], [Time].[2000]), ([Measures].[M1],
I have a problem with sql query in php: select user, name, outlet, switch,

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.