Issue 121312 - Slow database access with Java 7
Summary: Slow database access with Java 7
Status: CLOSED OBSOLETE
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Linux, all
: P3 Normal with 1 vote (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 10:17 UTC by Andreas Säger
Modified: 2017-05-20 09:36 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.2.0-dev
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andreas Säger 2012-11-05 10:17:03 UTC
Base becomes very slow when connected via JDBC and Java 7. There is no such problem with Java 6.
OpenOffice.org 3.2 and 3.3 suffered from the same performance problem with any Java version >6.23
This problem never occurred under Windows 7 nor XP.

Verified under Ubuntu Linux(32 and 64) with the following JDBC connections:
1. embedded HSQLDB 1.8
2. external HSQLDB 2.2.x
3. external H2 1.2.x
Comment 1 jolatt 2012-11-05 13:12:04 UTC
I don't use those connections but IMHO it's not unimportant which java is mentioned, Oracle or openjdk.
Comment 2 Andreas Säger 2012-11-05 14:33:54 UTC
Both, Oracle Java7 and openjdk-7.
Comment 3 robbygro 2013-07-14 08:22:56 UTC
Have just tested AOO 4.0. There is a test-database here: https://bugs.freedesktop.org/attachment.cgi?id=63257
When I will open the table under OpenSUSE 64bit rpm and 1.7.0_21 openjdk it needs 10 seconds to show the rows on the screen. Now, when I will move to last row, it lasts 2 Minutes and 40 seconds.
Same test on the same environment, only changed the jre to 1.6.0_22 SUN, the table opens immediately, moving to last row about max. 2 seconds.
Don't know how I could change the Status, but it has to be changed to "Confirmed".
Comment 4 Ariel Constenla-Haile 2013-07-14 08:24:57 UTC
Setting CONFIRMED status
Comment 5 andreas.grupe 2013-09-03 14:08:57 UTC
This issue keeps me on the very very old Java 1.6.022!

Please fix this issue - it's open since months and months. I'm working with OpenSuse 12.3!

Thanks
Comment 6 Oliver-Rainer Wittmann 2013-10-02 10:51:16 UTC
due to reporters description:
platform = 'Linux'
version = 'pre-3.4.0' (which is not available), thus '3.4.0'
Comment 7 Andreas Säger 2013-10-02 13:56:27 UTC
Same problem with AOO 4.0.1.
Comment 8 Andreas Säger 2014-03-03 12:52:56 UTC
Same problem with AOO 4.1.0 beta.
Comment 9 leroy.tennison 2014-03-27 20:50:20 UTC
With AOO 4.0.1 the problem exists with jre 6u22 and 7u51.
Comment 10 mroe 2014-03-28 09:42:14 UTC
This issue should get a higher priority because HSQL is virtual unusable because every data access needs 100 % CPU power over seconds/minutes. (Ubuntu 368)
Comment 11 Andreas Säger 2014-03-28 14:08:12 UTC
> With AOO 4.0.1 the problem exists with jre 6u22 and 7u51.

No, it works well with 6u22. Call Tools>Options>Java and make sure that the old JRE is checked. Click the option button, not just the list entry! Then restart the office completely including any "quick starter" (which is the most obsolete anti-feature, by the way).
Comment 12 mroe 2014-03-28 16:47:53 UTC
There are several security updates in Java since 6.x.
Because a linux distribution integrates Java in its update mechanism, for most users it is difficult to switch back to an earlier Java release without removing the actual one.
Comment 13 mroe 2014-08-19 15:48:15 UTC
Seems the problem is gone with Java 8.
Comment 14 Andreas Säger 2014-08-19 17:16:37 UTC
(In reply to mroe from comment #13)
> Seems the problem is gone with Java 8.

Indeed.
Comment 15 Kay 2014-08-19 23:42:51 UTC
Why was this changed to Resolved/Obsolete?

Java 8 is not part of our current system requirements. 
I'm on 4.1.1 and openJDK "1.7.0_51", and yes, I definitely experience the issue described here.

I'm assuming Java 8 is a work-around by this discussion, but is "Obsolete" the right reason?
Comment 16 mroe 2014-08-20 07:08:35 UTC
Because AOO works with Java 6 and Java 8 but not with Java 7, it seems there was a problem in Java 7, not in AOO. But if anyone know the reason, why AOO slows down with Java 7 and find a solution in the AOO code, he should reopen this issue. Otherwise I think that no developer will grab this issue. Isn't it?
Comment 17 Kay 2014-08-20 17:47:14 UTC
Re comment 16. I understand your reasoning. I will pass on the "dev" and see what opinions are.