Question
· Sep 1, 2021

Database increase a lot

Hello, 

 

The database is increasing a lot (almost a 1TB) and getting bigger with no sense after migration, the use of the plataform did not increase after the migration so is strange for us this increase.

how can I check everything is ok in the database? for example any table getting bigger.

Before the migration the logs were like:

07/22/21-17:18:26:304 (19701) 0 Starting Expansion for database /opt/Intersystems/HS/HS_201521705/mgr/cachetemp/. 276 MB requested.

07/22/21-17:18:26:373 (19701) 0 Expansion completed for database /opt/Intersystems/HS/HS_201521705/mgr/cachetemp/. Expanded by 276 MB.

but after migration the expansions are:

09/01/21-17:51:44:363 (15731) 0 Starting Expansion for database /opt/Intersystems/HS/HS_201521705/mgr/REGINUS/. 1000 MB requested.

09/01/21-17:51:51:935 (15731) 0 Expansion completed for database /opt/Intersystems/HS/HS_201521705/mgr/REGINUS/. Expanded by 1000 MB.

09/01/21-17:54:04:632 (15723) 0 CACHE JOURNALING SYSTEM MESSAGE

Automatic journal file roll to: /opt/Intersystems/HS/HS_201521705/mgr/journal/MIRROR-MPIPROD-20210901.097

09/01/21-18:03:39:755 (15723) 0 CACHE JOURNALING SYSTEM MESSAGE

Automatic journal file roll to: /opt/Intersystems/HS/HS_201521705/mgr/journal/MIRROR-MPIPROD-20210901.098

09/01/21-18:12:36:931 (15723) 0 CACHE JOURNALING SYSTEM MESSAGE

Automatic journal file roll to: /opt/Intersystems/HS/HS_201521705/mgr/journal/MIRROR-MPIPROD-20210901.099

09/01/21-18:14:08:881 (15731) 0 Starting Expansion for database /opt/Intersystems/HS/HS_201521705/mgr/REGINUS/. 1000 MB requested.

09/01/21-18:14:15:630 (15731) 0 Expansion completed for database /opt/Intersystems/HS/HS_201521705/mgr/REGINUS/. Expanded by 1000 MB.

 

Any idea what might be happening?

 

Thanks!!

Product version: HealthShare 2016.2
$ZV: Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2016.2.1 (Build 806_0_17136U) Tue Mar 7 2017 12:32:06 EST [HealthShare Modules:Core:15.02.9912 + Linkage Engine:15.02.9912 + Patient Index:15.02.9912]
Discussion (7)1
Log in or sign up to continue

Hi,

It would seem that your REGINUS database expansion size has been set to 1000, this can be checked via the SMP using System->Configuration->Local Databases and clicking on the relevant database link.

I would hazard a guess that your cachetemp database has an expansion size of 0 which is the system default hence why it is growing at a lesser rate.

If you run ^%GSIZE in the relevant namespaces then you will be able to see which globals are taking up so much space.

There is of course the possibility that you had work objects/globals being created that have since been deleted and therefore you could have a lot of empty space in your database. This can be resolved using both Database Compact and Truncate. These options can be found in the SMP under System->Databases and clicking on the relevant database link.