Menu

#963 KeePass 2.17 extremely slow

closed
nobody
None
5
2014-09-04
2011-12-19
No

As per my reply to this forum post: https://sourceforge.net/projects/keepass/forums/forum/329221/topic/4878161/

I can start KeePass relatively quickly and enter my database password, but then KeePass literally takes several MINUTES to do whatever it's doing before it displays the main window with the database opened. During this time one of my CPU cores is basically at 100% use.

I am using Windows 7 Ultimate 64bit.

Discussion

  • - 2011-12-19

    MiniKeePass for iOS can open the exact same .kdbx file instantly.

     
  • - 2011-12-19

    More information: If I lock the workspace (control-l in KeePass), unlocking also takes minutes. KeePass's status says "Opening password database..." and the progress bar stays at the low/left end.

     
  • Dominik Reichl

    Dominik Reichl - 2011-12-19

    If your database is large, try making it smaller by e.g. removing attachments. KeePass is a password manager, not an encrypted file system. Also try cleaning up your database using 'Tools' -> 'Database Tools' -> 'Database Maintenance'.

    Slowness that I can't reproduce isn't a bug, thus I'm closing this bug report. For further support, please use the discussion forums. We currently have a similar report here:
    https://sourceforge.net/projects/keepass/forums/forum/329221/topic/4891639

    Best regards
    Dominik

     
  • Dominik Reichl

    Dominik Reichl - 2011-12-19
    • status: open --> closed
     
  • - 2011-12-19

    The database is not large, and does not have any attachments, and I had already done the suggested database maintenance which, in fact, made the database *larger*, but it's still only a quarter of a megabyte.

    Also, did you see my comment that MiniKeePass on iOS has NO problem with opening this *exact same* database?

    There are other complaints of KeePass 2.x being slow online, for example: http://fileforum.betanews.com/detail/KeePass-Password-Safe-Professional-Edition/1086630189/2?all_reviews (search for slow--that user blames it on .net, but I don't know if that's the real reason)

     
  • Dominik Reichl

    Dominik Reichl - 2011-12-19

    If you provide a sample database and your configuration file, I can try to reproduce the slowness that you're seeing.

    Best regards
    Dominik

     
  • - 2011-12-19

    I spent some time trying to reproduce the problem with a new dummy/scratch database, without success. I even exchanged the database between Windows KeePass and iOS MiniKeePass, making random modifications and deletions between both.

    Eventually I exported the problematic database to XML and viewed it, and noticed that in the history section of some of the entries, the password value field was impossibly long. Viewing those specific problem entries would take KeePass a very long time, as would opening the specific history entry--and KeePass wouldn't even show a password in those history entries.

    So far, despite trying, I cannot cause the same kind of corruption(?) in my scratch database. My best guess is that it's some kind of faulty interaction between the two applications--MiniKeePass doesn't appear to support the history sections at all, so maybe somehow it messes up the database when there is a history?

     
  • Dominik Reichl

    Dominik Reichl - 2011-12-20

    I don't know; I don't have any iDevice for testing.

    Can you remove everything from the database file except the corrupted string and post it here (as it's a history entry, the password isn't valid anymore anyway?)? Maybe I can guess what caused it.

    Thanks and best regards
    Dominik

     
  • - 2011-12-22

    Unfortunately the data could very well be valid, since the database was initially created from a CSV import from a password safe I used on my (now defunct) PalmOS device. The CSV had some issues and I corrected them within KeePass on an as-needed basis.

     
  • Rick Sayre

    Rick Sayre - 2012-07-08

    I observed this same problem, but I think it was due to database corruption caused by MiniKeePass.

    See https://github.com/MiniKeePass/MiniKeePass/issues/98

     
  • Ildar Mulyukov

    Ildar Mulyukov - 2013-08-14

    Having the issue I see that the slowness is not at time of opening but at showing the list of entries.
    I've moved all the entries to a group and unlocking become fast as it should be!

     
  • Ildar Mulyukov

    Ildar Mulyukov - 2013-08-14

    Closing the issue is wrong. I see this problem on a tiny database: ~500 entries, size=56094, KeeFox db.

     
  • Keith Brown

    Keith Brown - 2013-09-11

    I see the same issue. I have 3 keepass databases, one is 4.9kb, one 10.6kb, and the largest is 43kb. Keepass starts fine, loads the databases, but once everything is loaded, acts like molasses. It can take a few seconds for a redraw of the window. Running Win7 on a Core i7. Funny thing is, same exact databases, running on the same version of Keepass2, just via the Linux version, is zippy. My work linux box is also slower, being an early Core 2 Duo. I only have problems on the Windows version.

     
  • Ildar Mulyukov

    Ildar Mulyukov - 2013-09-13

    People having the issue please list installed plugins you have.
    I have just one: KeePassRPC.plgx (installed for KeeFox).

    P.S. related discussion is here: https://sourceforge.net/p/keepass/discussion/329221/thread/3d7b7a4a

     

    Last edit: Ildar Mulyukov 2013-09-13
  • Dave Brand

    Dave Brand - 2014-04-07

    I did a quick bit of profiling and found that on my database, at least, this extreme slowness was spent sorting. Disabling sort fixed it.

    From the menu: View>Sort By>No Sort.

    The sort comparison function looks pretty expensive but I haven't looked into fixing it yet - I can live without it.

     

Log in to post a comment.

MongoDB Logo MongoDB