Conquest PACS inactivity potentially caused by MySQL connection exhaustion

  • Question-1: Conquest PACS running on verbose mode with XAMMP (MySQL DB Apache and tomcat for web) but at after some i am getting slow response while loading images after restarting conquest service it gets idle loading images ??

    Question-2: What is idle session time in MySQL wait_time by default is 28800 ( up to 8 hours). Can be changed ??

    What my finding is idle session time in MySQL wait_time by default is 28800 ( up to 8 hours) and my max-connection reached up to 301.

    These was also error too many connection ( this can be reason conquest PACS application was inactive) unable to loading images server was in inactive status.

    Question-2: During this process Conquest PACS application and MYSQL DB response was inactive and after restarting Xammp and conquest PACS all service were working.

    Executed these commands and these were my results

    SHOW STATUS LIKE 'Threads_connected';
    SHOW STATUS LIKE 'Threads_running';
    SHOW STATUS LIKE 'Max_used_connections';
    SHOW VARIABLES LIKE 'max_connections';
    SHOW VARIABLES LIKE 'wait_timeout';
    SHOW STATUS LIKE 'Uptime';
    SHOW VARIABLES LIKE 'interactive_timeout';
    SHOW FULL PROCESSLIST;

    Results
    Threads_connected 6
    Threads_running 1
    max_connections 300
    Max_used_connections 301
    MySQL wait_timeout 28800 Idle connections can remain open for 8 hours.

    I will share screeshot as well where my PACSNEW (PACS server in sleep mode during this whole issue for 2.5 hours has maintained session)

    marcel  kashiffc

  • Hi,

    Conquest does not touch any database parameters.

    Conquest does keep a few database sessions open during its entire runtime (6 sounds reasonable)

    I run all my servers with sqlite so I have not much recent experience. It may be there may be a code change made that fails to close a database connection somewhere. What activities were running when you ran out of connections? Exactly which version were you using?

    Marcel

    Marcel van Herk is developer of the Conquest DICOM server together with Lambert Zijp.


  • Conquest does keep a few database sessions open during its entire runtime (6 sounds reasonable)
    So i can change session time in mysql db with 5 mints to 10 mints.

    I run all my servers with sqlite so I have not much recent experience. It may be there may be a code change made that fails to close a database connection somewhere. What activities were running when you ran out of connections? Exactly which version were you using?

    1. Conquest version 1.5.d
    2. XAMMP is used with Apache MYSQL and Tomcat for Weasis web. (weasis PACS connector Protcol)
    in mysql (.ini)
    max connection set to 300.

    Studies archived 450000+ on conquest server uncompressed DICOM data.

    My actual question is that what is best parameters session time with DB and conquest server.

    Default MySQL wait_timeout 28800 Idle connections can remain open for 8 hours this is current setting (as you mentioned Conquest does keep a few database sessions open during its entire runtime.(6 sounds reasonable)

    I want to change my wait_timeout to 300 (5 mints) interactive_timeout = 300; so cannot keep long sessions (300 plus hits on server with weasis web and Radiant viewer.

    After study all mentioned parameters DB side needs to addresses session time and interactive_timeout need to in idle for 5 mints as per my understanding by studying on different forums.

  • Thanks for the explanation.

    I think you should just try it after you backup the database. However, if the database connections - that are meant to remain open - are closed, conquest crashes. This should have no serious side effects, but best try e.g. in the weekend when there is little activity. We run pretty much all our instances on sqlite (fine if you have enough ram) but they are an order of magnitude smaller. In my previous job we ran on mssql.

    Marcel

    Marcel van Herk is developer of the Conquest DICOM server together with Lambert Zijp.

  • Thank you for your response

    1. Conquest does not crashes it become inactive state.

    2. After restarting Xammp and conquest it becomes idle.

    3. What will be idle session as you mentioned you are using sqlite db ?

  • Things like the monitoring thread for incoming, let me check!

    I found these:

    prefetcherthread, only started with Prefetcher=1 in dicom.ini

    monitorthread, started once when folder incoming is defined, twice when WatchFolder is defined in dicom.ini

    driverapp:server: the core dicom.server. Here a database is opened on server startup, but not sure if it used for anything.

    Then every association opens at lease one database, but these should be transient.

    Marcel

    Marcel van Herk is developer of the Conquest DICOM server together with Lambert Zijp.

  • Prefetcherthread, only started with Prefetcher=1 in dicom.ini ( i have not configured these values on DICOM.ini.

    I will be monitoring my PACS and DB with some values will be changed and checked. ( on Database side).SHOW GLOBAL STATUS LIKE 'Threads%';
    SHOW GLOBAL STATUS LIKE 'Connections';
    SHOW GLOBAL STATUS LIKE 'Aborted%';
    SHOW GLOBAL STATUS LIKE 'Created_tmp%';
    SHOW GLOBAL STATUS LIKE 'Slow_queries';
    SHOW GLOBAL STATUS LIKE 'Opened_tables';
    SHOW GLOBAL STATUS LIKE 'Table_open_cache%';

    I will check these and update.
    I will implement these values on DB side and check what will be results.

    SET GLOBAL wait_timeout = 1800; 30 mints
    SET GLOBAL interactive_timeout = 600;

    SET GLOBAL wait_timeout = 600; 10 mints
    SET GLOBAL interactive_timeout = 600;

    SET GLOBAL wait_timeout = 300; 5 mints
    SET GLOBAL interactive_timeout = 300;

  • marcelvanherk Update
    MY VM has 32 GB RAM

    parameters implemented on MYSQL ini configuration

    ( innodb_buffer_pool_instances= 16 )

    ( innodb_buffer_pool_size= 20 GB )
    Now conquest is working fine no slowness reported till now. ( innodb_buffer_pool_instances= 16 ) this could be key factor ?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!