VMware Cloud Community
tmjdrr
Contributor
Contributor
Jump to solution

vCentre Server Database Size

Hello All,

My vCentre Server (5.0) database has been growing by about 2GB per day for the last few weeks.  It was initially on a local SQL Express server, but moved it onto full SQL once it hit the 10GB limit. That was about a week ago - it now stands at about 23GB.

I've tried what's suggested in the follwoing KBs, but still no change.

http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1007453

http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1025914

I've a small vm setup - 5 hosts, about 150 VMs (servers + virtual desktops).  The database size calculator in the vSphere client estimates the size would be around 1GB (granted this is only an indication) but it does seem ridiculously big given the intrastructure.

Statistic level is all set to "1" and retention for logs and tasks is set to 15 (was 90 previously).

It's not SQL log files that's consuming the space (had my SQL admin look at the DB)

In terms of additinal modules - i have SRM, vShield, Update manager and NetApp VSC - these were all previously installed before the database size started growing. 

Any idea as to where i can look to see what's going on and whats causing the databse to grow so large?

Thanks,

Tom

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
chriswahl
Virtuoso
Virtuoso
Jump to solution

It might help to understand which table is filling up with so much data. This KB will provide you with instructions on how to do this.

Displaying the size of all tables on MS SQL server

Have you opened an SR to have an engineer take a look?

VCDX #104 (DCV, NV) ஃ WahlNetwork.com ஃ @ChrisWahl ஃ Author, Networking for VMware Administrators

View solution in original post

0 Kudos
7 Replies
chriswahl
Virtuoso
Virtuoso
Jump to solution

Can you confirm it is the DB that has grown so large and not the logs? In many scenarios I see the logs grow as the model is set to "Full" recovery and so the logs are not being committed (as occurs with a backup).

VCDX #104 (DCV, NV) ஃ WahlNetwork.com ஃ @ChrisWahl ஃ Author, Networking for VMware Administrators
0 Kudos
tmjdrr
Contributor
Contributor
Jump to solution

It is the DB.  We've backup up the database so that the logs are committed, but still not change.  Database is set to "Normal" recovery mode.

0 Kudos
chriswahl
Virtuoso
Virtuoso
Jump to solution

It might help to understand which table is filling up with so much data. This KB will provide you with instructions on how to do this.

Displaying the size of all tables on MS SQL server

Have you opened an SR to have an engineer take a look?

VCDX #104 (DCV, NV) ஃ WahlNetwork.com ஃ @ChrisWahl ஃ Author, Networking for VMware Administrators
0 Kudos
tmjdrr
Contributor
Contributor
Jump to solution

Top 20 results shown below - biggest tables is VPX_EVENT_ARG and VPX_EVENT.  The data in both tables acocunts for 12.13 GB and the index is 11.43GB

rowsreserveddata (KB)Data (GB)index sizeIndex size (GB)unused
VPX_EVENT_ARG296434318541776 KB66146006.3119255361.841640 KB
VPX_EVENT2933290816154880 KB60988165.82100538809.592184 KB
VPX_BINARY_DATA4128640 KB1283040.1280.00328 KB
VPX_HIST_STAT172472935824 KB355760.032240.0024 KB
VPX_TEXT_ARRAY821434944 KB330800.0312320.00632 KB
VPX_HIST_STAT226283212528 KB113600.011120.001056 KB
VPX_HOST_VM_CONFIG_OPTION2010544 KB103280.0180.00208 KB
VPX_TASK403512096 KB89840.0120400.001072 KB
VPX_LIC_USAGE571538576 KB47680.0034560.00352 KB
VPX_VM1292424 KB20960.001680.00160 KB
VPX_HOST51856 KB17040.00800.0072 KB
VPX_VM_FLE_FILE_INFO20652808 KB8240.0018160.00168 KB
VPX_PROPERTY_BULLETIN65233408 KB7440.0021040.00560 KB
VPX_STAT_COUNTER82532848 KB6640.0017440.00440 KB
VPX_HOST_X5688 KB5920.00240.0072 KB
VPX_TOPN_ERROR_LOG3184592 KB5360.00160.0040 KB
VPX_INT_ARRAY110422080 KB5040.0012000.00376 KB
VPX_TOPN_PAST_MONTH14256584 KB4720.00160.0096 KB
VPX_SDRS_STATS_VM182488 KB4160.00160.0056 KB

Searching for "VPX_EVENT" yeilds the following KB:

http://blogs.vmware.com/kb/2010/09/dealing-with-vcenter-41-database-tables-growth.html

Would still like to know what is causing the database to grow so quickly.  Clearing it won't really deal with th issue, only free up space! Is there any awy of seeing what is writing to the DB?

0 Kudos
tmjdrr
Contributor
Contributor
Jump to solution

Right,  getting somewhere as to why:  there are LOADS of vim.event.UserLoginSessionEvent and vim.event.UserLogoutSessinEvent in the VPX_EVENT table  for a particular use account - 20+ login and logout every second!  Not sure what is logging in with the account  or why - so have changed the password.  The rate of growth has fallen straightaway.  Just got to track down what was generating those event now.

0 Kudos
admin
Immortal
Immortal
Jump to solution

Based on the report you have old events data in the vCenter Server database.

You can either keep it or reduce it. http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/ gives a summary why you experience the issue and how you can solve it.

0 Kudos
tmjdrr
Contributor
Contributor
Jump to solution

So managed to clear down the table using the instructions here: http://blogs.vmware.com/kb/2010/09/dealing-with-vcenter-41-database-tables-growth.html

Although it wasnt as straightforward as the DB was so large.  Had to clear it out in batchs of rows.

Discovered the culprint of behind all the login/loguts - vSheild manager!

0 Kudos