ConfigHubPub / ConfigHubPlatform

ConfigHub Platform
https://www.confighub.com
GNU General Public License v3.0
69 stars 25 forks source link

Memory issues #68

Open raptor235 opened 6 years ago

raptor235 commented 6 years ago

Hey guys,

Having a hard time spinning up an image.. whatever memory I set it runs out of memory... I went up to 16gb and the process still just dies...

WARNING: Your kernel does not support swap limit capabilities. Limitation discarded.
f518838c3a06ef38dda7343b2694ac2321de1519c35d8cab8899c7266ba05b00
root@ip-172-31-12-25:/tmp#
root@ip-172-31-12-25:/tmp# docker logs confighub
Writing database credentials to /confighub/server/conf/tomee.xml
Writing server configuration to confighub/confighub.sh
2018-05-28 20:03:15,419 CRIT Server 'unix_http_server' running without any HTTP authentication checking
Reading confighub settings...
Reading server settings...
OpenJDK 64-Bit Server VM warning: ignoring option PermSize=512m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000005c0000000, 8589934592, 0) failed; error='Out of memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 8589934592 bytes for committing reserved memory.
# An error report file with more information is saved as:
# //hs_err_pid14.log
Reading confighub settings...
Reading server settings...
OpenJDK 64-Bit Server VM warning: ignoring option PermSize=512m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000005c0000000, 8589934592, 0) failed; error='Out of memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 8589934592 bytes for committing reserved memory.
# An error report file with more information is saved as:
# //hs_err_pid138.log
Reading confighub settings...
Reading server settings...
OpenJDK 64-Bit Server VM warning: ignoring option PermSize=512m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000005c0000000, 8589934592, 0) failed; error='Out of memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 8589934592 bytes for committing reserved memory.
# An error report file with more information is saved as:
# //hs_err_pid262.log
Reading confighub settings...
Reading server settings...
OpenJDK 64-Bit Server VM warning: ignoring option PermSize=512m; support was removed in 8.0
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000005c0000000, 8589934592, 0) failed; error='Out of memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 8589934592 bytes for committing reserved memory.
# An error report file with more information is saved as:
# //hs_err_pid386.log

I haven't done anything yet and just out of the box we're having memory issues... any ideas?

edoarsla commented 6 years ago

Hi. Are you building top-of-tree, or are you using a release build?

raptor235 commented 6 years ago

I was trying to run through the following command

docker run -d \
    -p 8080:80 \
    -p 8443:443 \
    -e DB_URL=jdbc:mysql://XXX:3306/ConfigHub \
    -e DB_DRIVER=com.mysql.jdbc.Driver \
    -e DB_USERNAME=XXX \
    -e DB_PASSWORD=xxx \
    -e ALLOCATED_MEMORY=8g \
    --name confighub \
    confighub/confighubplatform:latest
raptor235 commented 6 years ago

@edoarsla ^^