Bitbucket memory usage

it
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 20, 2018

Hi,

I have a newly installed Bitbucket 5.8 on CentOS 6.8, git version 2.16.2 and postgresql 9.6. I found that it has been allocated 13G virutal memory after startup! Further check on  /proc/<pid>/status as below

(pid - process id of bitbucket process). Wondering it is normal for VmPeak and VmSize to have 13G ?! What could have gone wrong?

Name:   java
State:  S (sleeping)
Tgid:   67869
Pid:    67869
PPid:   1
TracerPid:      0
Uid:    500     500     500     500
Gid:    500     500     500     500
Utrace: 0
FDSize: 1024
Groups: 500
VmPeak: 13669700 kB
VmSize: 13666500 kB
VmLck:         0 kB
VmHWM:   1720016 kB
VmRSS:   1717468 kB
VmData: 13498828 kB
VmStk:        88 kB
VmExe:         4 kB
VmLib:     17184 kB
VmPTE:      4776 kB
VmSwap:        0 kB
Threads:        305
SigQ:   0/63229
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000000000003
SigCgt: 2000000181005ccc
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: ffffffffffffffff
Cpus_allowed:   ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff
Cpus_allowed_list:      0-191
Mems_allowed:   00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
Mems_allowed_list:      0
voluntary_ctxt_switches:        1
nonvoluntary_ctxt_switches:     3

 

 

1 answer

0 votes
Lonnie
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 20, 2018

Hello, Thanks for your query, I am not sure of your current situation. Was this an existing environment or is this new with no existing data? If you have existing data Bitbucket maybe indexing the repositories. 

 

Here is some information in regards to scaling and memory usage :

https://confluence.atlassian.com/bitbucketserver/scaling-bitbucket-server-776640073.html

 

* VmSize is the sum of all mapped memory (/proc/pid/maps)/ Not was is currently used.

* VmPeak: Peak virtual memory size.

 

The java process for Bitbucket should be around the size of java heap

What is the value of the RES column of TOP for the java process? That is the amount of memory in use. 

 

Hope this helps

Lonnie 

it
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 20, 2018

Thanks for the respond, Lonnie. It is a new installation and no existing data.

The REST column of TOP for the java process shows 1.6g, VIRT shows 13.0g. Do I need to worry about having 13g in VIRT?  How much virtual memory is normally allocated for a brand new installation?

Lonnie
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 21, 2018

Hello, I don't think this is something to worry about. Here is a nice blog/article on VIRT memory: virtual-memory-on-server-without-swap

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events