# Embedded elasticsearch on Websphere Z/OS?

**URL:** <https://discuss.elastic.co/t/embedded-elasticsearch-on-websphere-z-os/16502>\
**Category:** Elasticsearch\
**Created:** [March 20, 2014, 3:27pm UTC](https://discuss.elastic.co/t/embedded-elasticsearch-on-websphere-z-os/16502 "2014-03-20T15:27:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![binoyaf](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@binoyaf](https://discuss.elastic.co/u/binoyaf)\
**Post date:** [March 20, 2014, 3:27pm UTC](https://discuss.elastic.co/t/embedded-elasticsearch-on-websphere-z-os/16502/1 "2014-03-20T15:27:06Z")

</div>

hi,

I am trying to get elasticsearch to work in an embedded mode inside a websphere application server (V8.5.0.1) on Z/OS. After startup, it keeps logging the below error trace and the CPU spikes to 100%.

- [ZOSB] version[1.0.0], pid[50397324], build[a46900e/2014-02-12T16:18:34Z]
- [ZOSB] initializing ...
- [ZOSB] loaded [], sites []
- [ZOSB] initialized
- [ZOSB] starting ...
- [ZOSB] bound\_address {inet[/0.0.0.0:9300]}, publish\_address {inet[/10.1.99.130:9300]}
- [ZOSB] exception caught on transport layer [[id: 0x504824fd, /10.1.99.130:25601 =\> /10.1.99.130:9300]], closing connection  
java.io.IOException: EDC5112I Resource temporarily unavailable. (errno2=0x05230138)  
at sun.nio.ch.FileDispatcher.preClose0(Native Method)  
at sun.nio.ch.SocketDispatcher.preClose(SocketDispatcher.java:53)  
at sun.nio.ch.SocketChannelImpl.implCloseSelectableChannel(SocketChannelImpl.java:730)  
at java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:212)  
at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:108)  
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.close(AbstractNioWorker.java:353)  
at org.elasticsearch.common.netty.channel.socket.nio.NioClientSocketPipelineSink.eventSunk(NioClientSocketPipelineSink.java:58)  
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.java:574)  
at org.elasticsearch.common.netty.channel.Channels.close(Channels.java:812)  
at org.elasticsearch.common.netty.channel.AbstractChannel.close(AbstractChannel.java:197)  
at org.elasticsearch.transport.netty.NettyTransport$NodeChannels.closeChannelsAndWait(NettyTransport.java:944)  
at org.elasticsearch.transport.netty.NettyTransport$NodeChannels.close(NettyTransport.java:934)  
at org.elasticsearch.transport.netty.NettyTransport.disconnectFromNode(NettyTransport.java:793)  
at org.elasticsearch.transport.TransportService.disconnectFromNode(TransportService.java:137)  
at org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing$2$1.run(UnicastZenPing.java:186)  
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)  
at java.lang.Thread.run(Thread.java:772)

Environment details-  
java version "1.6.0"  
Java(TM) SE Runtime Environment (build pmz6460\_26sr3-20120810\_01(SR3))  
IBM J9 VM (build 2.6, JRE 1.6.0 z/OS s390x-64 20120809\_118944 (JIT enabled, AOT enabled)  
J9VM - R26\_Java626\_SR3\_20120809\_1152\_B118944  
JIT - r11.b01\_20120808\_24925  
GC - R26\_Java626\_SR3\_20120809\_1152\_B118944  
J9CL - 20120809\_118944)  
JCL - 20120713\_01

Elasticsearch version: 1.0.0

At first guess, I think this has something to do with the IBM SDK version. There is a defect with a similar stack trace listed on IBM - [http://www-01.ibm.com/support/docview.wss?uid=swg1IV50158](http://www-01.ibm.com/support/docview.wss?uid=swg1IV50158). It is fixed in versions 6.0.15.1, 6.1.7.1 and 7.0.6.1. However, these versions are not available for Websphere on Z/OS currently.

I tried the same version of the SDK on Windows 64-bit and it started up fine. Do you have any pointers on what might be causing this issue?

Thanks,  
Binoy

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:41am UTC](https://discuss.elastic.co/t/embedded-elasticsearch-on-websphere-z-os/16502/2 "2017-07-06T01:41:49Z")

</div>


