OpenVZ Forum


Home » General » Support » *SOLVED* need help installing Oracle 10g -- heap error
*SOLVED* need help installing Oracle 10g -- heap error [message #3392] Fri, 26 May 2006 03:19 Go to next message
dreed is currently offline  dreed
Messages: 3
Registered: May 2006
Junior Member
I've been banging my head on this one -- maybe somebody smarter than me can help:

I'm trying to install Oracle 10g on a virtual, and the installer refuses to start, with this error:
Error occurred during initialization of VM 
Could not reserve enough space for object heap


The host node can run this fine, so I know the hardware is capable.

Host node is CentOS 4.3, the virtual is the pre-made template for CentOS 4.

This looks like a jre memory problem. Oracle's install intructions suggest these changes to /etc/sysctl.conf:
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144


I added those on the virtual, but when I run
systctl -p
, I get this:

net.ipv4.ip_forward = 0
error: unknown error 1 setting key 'net.ipv4.conf.default.rp_filter'
error: unknown error 1 setting key 'net.ipv4.conf.default.accept_source_route'
error: unknown error 1 setting key 'kernel.sysrq'
error: unknown error 1 setting key 'kernel.core_uses_pid'
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
error: unknown error 1 setting key 'fs.file-max'
error: unknown error 1 setting key 'net.ipv4.ip_local_port_range'
error: unknown error 1 setting key 'net.core.rmem_default'
error: unknown error 1 setting key 'net.core.wmem_default'
error: unknown error 1 setting key 'net.core.rmem_max'
error: unknown error 1 setting key 'net.core.wmem_max'


Related to the problem with the java heap?

Any help here, or instructions on a someone else's succesful Oracle 10g installation would be _really_ welcome...

[Updated on: Mon, 29 May 2006 08:42] by Moderator

Report message to a moderator

Re: need help installing Oracle 10g -- heap error [message #3393 is a reply to message #3392] Fri, 26 May 2006 04:28 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
You hit some some limits inside VE.
Look in /proc/user_beancounters, after unsuccessful try of Oracle installation. Using information from last column you can determine which limits were hitted. Then just increase appropriate limits by vzctl.

HTH.
Re: need help installing Oracle 10g -- heap error [message #3411 is a reply to message #3393] Fri, 26 May 2006 13:59 Go to previous messageGo to next message
dreed is currently offline  dreed
Messages: 3
Registered: May 2006
Junior Member
Here's what I see in /proc/user-beancounter:
[
]
Version: 2.5                                                                   
       uid  resource           held    maxheld    barrier      limit    failcnt
       100: kmemsize         927864    1077390    2752512    2936012          0
            lockedpages           0          0         32         32          0
            privvmpages        5318      14574      49152      53575          2
            shmpages            679        695       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              19         24         65         65          0
            physpages          2554       3391          0 2147483647          0
            vmguarpages           0          0       6144 2147483647          0
            oomguarpages       2554       3391       6144 2147483647          0
            numtcpsock            4          4         80         80          0
            numflock              3          4        100        110          0
            numpty                1          1         16         16          0
            numsiginfo            0          2        256        256          0
            tcpsndbuf          2228      11140     319488     524288          0
            tcprcvbuf             0       2228     319488     524288          0
            othersockbuf       2228      10200     132096     336896          0
            dgramrcvbuf           0       8372     132096     132096          0
            numothersock          5         17         80         80          0
            dcachesize        93562     110853    1048576    1097728          0
            numfile             248        299       2048       2048          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0
[
]
I'll try setting privvmpages, which is the only one that looks like it has a failure.

[Updated on: Fri, 26 May 2006 14:06]

Report message to a moderator

Re: need help installing Oracle 10g -- heap error [message #3420 is a reply to message #3393] Fri, 26 May 2006 15:16 Go to previous message
dreed is currently offline  dreed
Messages: 3
Registered: May 2006
Junior Member
That worked! I wound up using
vzctl set 100 --privvmpages 200000
to get the Oracle Installer to run.

Thanks.

[Updated on: Fri, 26 May 2006 15:16]

Report message to a moderator

Previous Topic: How to create our own templates?
Next Topic: *SOLVED* redhat enterprise 4 and mapped/ipv6 ips (FIXED)
Goto Forum:
  


Current Time: Fri Jul 12 23:37:15 GMT 2024

Total time taken to generate the page: 0.02301 seconds