Java heap space error

I've tried setting explicit JAVA_OPTS memory settings but it doesn't help. Has anyone experienced memory errors upon starting a node?

[12:32:17,652][INFO ][transport ] [Stygyro] bound_address {inet[/10.0.20.61:9300]}, publish_address {inet[elasticd1/10.0.20.61:9300]}
java.lang.OutOfMemoryError: Java heap space
Dumping heap to /some/foo/bar/work/heap ...
Heap dump file created [726407770 bytes in 12.177 secs]
[12:32:35,517][WARN ][transport.netty ] [Stygyro] Exception caught on netty layer [[id: 0x4d480773, /10.0.10.11:57297 => /10.0.20.61:9300]]
java.lang.OutOfMemoryError: Java heap space

Here is the config I use.

cluster:
name: webs-elasticsearch

network:
host: elasticd1

node:
data: true

discovery:
zen:
ping:
multicast:
enabled: false
unicast:
hosts: [elasticd1, elasticd2, elasticd3, elasticd4, elasticd5]

http:
enabled: true

jmx:
createConnector: false

gateway:
type: none

index:
store:
type: memory
memory:
cacheSize: 100m
bufferSize: 100k

On Wed, 2010-09-01 at 09:41 -0700, fucema wrote:

I've tried setting explicit JAVA_OPTS memory settings but it doesn't help.
Has anyone experienced memory errors upon starting a node?

If you're trying to store more data in memory than you have memory, you
will have errors.

Why not just use the default file storage, and the kernel caches will
ensure that the most frequently accessed data is already cached in
memory?

clint

[12:32:17,652][INFO ][transport ] [Stygyro] bound_address
{inet[/10.0.20.61:9300]}, publish_address {inet[elasticd1/10.0.20.61:9300]}
java.lang.OutOfMemoryError: Java heap space
Dumping heap to /some/foo/bar/work/heap ...
Heap dump file created [726407770 bytes in 12.177 secs]
[12:32:35,517][WARN ][transport.netty ] [Stygyro] Exception caught
on netty layer [[id: 0x4d480773, /10.0.10.11:57297 => /10.0.20.61:9300]]
java.lang.OutOfMemoryError: Java heap space

Here is the config I use.

cluster:
name: webs-elasticsearch

network:
host: elasticd1

node:
data: true

discovery:
zen:
ping:
multicast:
enabled: false
unicast:
hosts: [elasticd1, elasticd2, elasticd3, elasticd4,
elasticd5]

http:
enabled: true

jmx:
createConnector: false

gateway:
type: none

index:
store:
type: memory
memory:
cacheSize: 100m
bufferSize: 100k

--
Web Announcements Limited is a company registered in England and Wales,
with company number 05608868, with registered address at 10 Arvon Road,
London, N5 1PR.