Related
ZINTERSTORE command is not identified by Redis CLI on https://try.redis.io/.
The Redis command's guide highlight that ZINTERSTORE (https://redis.io/commands/zinterstore) command is available from 2.0.0 version. The Redis available on try.redis.io is with version 4.0.6 and it's still not working.
Can someone point out why I'm seeing this issue? Thanks.
> help ZINTERSTORE
(error) I'm sorry, I don't recognize that command. Please type HELP for one of these commands: DECR, DECRBY, DEL, EXISTS, EXPIRE, GET, GETSET, HDEL, HEXISTS, HGET, HGETALL, HINCRBY, HKEYS, HLEN, HMGET, HMSET, HSET, HVALS, INCR, INCRBY, KEYS, LINDEX, LLEN, LPOP, LPUSH, LRANGE, LREM, LSET, LTRIM, MGET, MSET, MSETNX, MULTI, PEXPIRE, RENAME, RENAMENX, RPOP, RPOPLPUSH, RPUSH, SADD, SCARD, SDIFF, SDIFFSTORE, SET, SETEX, SETNX, SINTER, SINTERSTORE, SISMEMBER, SMEMBERS, SMOVE, SORT, SPOP, SRANDMEMBER, SREM, SUNION, SUNIONSTORE, TTL, TYPE, ZADD, ZCARD, ZCOUNT, ZINCRBY, ZRANGE, ZRANGEBYSCORE, ZRANK, ZREM, ZREMRANGEBYSCORE, ZREVRANGE, ZSCORE
'INFO' displays the version as 4.0.6
> INFO
# Server
redis_version:4.0.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:24cef40ebd18ad26
redis_mode:standalone
os:Linux 4.3.0 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:6.3.0
process_id:672285
run_id:f8f55998b58ba17ed77d218a78cda00a51b7287c
tcp_port:6380
uptime_in_seconds:12882795
uptime_in_days:149
hz:10
lru_clock:6906059
# Clients
connected_clients:1
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
# Memory
used_memory:34982504
used_memory_human:33.36M
used_memory_rss:42459136
used_memory_peak:35377616
used_memory_peak_human:33.74M
used_memory_lua:37888
mem_fragmentation_ratio:1.21
mem_allocator:jemalloc-4.0.3
# Persistence
loading:0
rdb_changes_since_last_save:4
rdb_bgsave_in_progress:0
rdb_last_save_time:1567186451
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:0
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
# Stats
total_connections_received:944827
total_commands_processed:1841417
instantaneous_ops_per_sec:0
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:13253
evicted_keys:0
keyspace_hits:335572
keyspace_misses:1003913
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:7905
migrate_cached_sockets:0
# Replication
role:master
connected_slaves:0
master_repl_offset:0
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0
# CPU
used_cpu_sys:7408.67
used_cpu_user:3715.21
used_cpu_sys_children:1172.14
used_cpu_user_children:5570.36
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=134447,expires=20,avg_ttl=125959035414186493
How do I clear the redis SLOWLOG?
# Server
redis_version:3.0.6
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:f62ea9ec3712ae8d
redis_mode:standalone
os:Linux 2.6.32-696.18.7.el6.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.4.7
process_id:1489
run_id:05da042dddac2ef593eb8f2954ff7a93185797f7
tcp_port:6379
uptime_in_seconds:7939847
uptime_in_days:91
hz:10
lru_clock:6602452
config_file:/etc/redis.conf
Looks SLOWLOG RESET was what I wanted.
https://redis.io/commands/slowlog#resetting-the-slow-log
I've configured Apache Ignite 1.8.0 programmatically and can start a server with a single node, but when another node joins, they cannot communicate and I receive many of the following two messages in the logs. These continue until the other node is stopped.
ERROR 12:52:39,187-0800 [*Initialization*] util.nio.GridDirectParser: Failed to read message [msg=null, buf=java.nio.DirectByteBuffer[pos=5 lim=420 cap=32768], reader=null, ses=GridSelectorNioSessionImpl [selectorIdx=0, queueSize=1, writeBuf=java.nio.DirectByteBuffer[pos=0 lim=32768 cap=32768], readBuf=java.nio.DirectByteBuffer[pos=5 lim=420 cap=32768], recovery=null, super=GridNioSessionImpl [locAddr=/10.97.184.106:5702, rmtAddr=/10.97.189.92:58788, createTime=1484945559174, closeTime=0, bytesSent=0, bytesRcvd=420, sndSchedTime=1484945559174, lastSndTime=1484945559174, lastRcvTime=1484945559185, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=o.a.i.i.util.nio.GridDirectParser#21e93eaf, directMode=true], GridConnectionBytesVerifyFilter], accepted=true]]]
class org.apache.ignite.IgniteException: Invalid message type: -84
at org.apache.ignite.internal.managers.communication.GridIoMessageFactory.create(GridIoMessageFactory.java:805)
at org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$5.create(TcpCommunicationSpi.java:1631)
at org.apache.ignite.internal.util.nio.GridDirectParser.decode(GridDirectParser.java:76)
at org.apache.ignite.internal.util.nio.GridNioCodecFilter.onMessageReceived(GridNioCodecFilter.java:104)
at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:107)
at org.apache.ignite.internal.util.nio.GridConnectionBytesVerifyFilter.onMessageReceived(GridConnectionBytesVerifyFilter.java:113)
at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:107)
at org.apache.ignite.internal.util.nio.GridNioServer$HeadFilter.onMessageReceived(GridNioServer.java:2332)
at org.apache.ignite.internal.util.nio.GridNioFilterChain.onMessageReceived(GridNioFilterChain.java:173)
at org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:918)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:1583)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:1516)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1289)
at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at java.lang.Thread.run(Thread.java:745)
WARN 12:52:39,188-0800 [*Initialization*] communication.tcp.TcpCommunicationSpi: Failed to process selector key (will close): GridSelectorNioSessionImpl [selectorIdx=0, queueSize=1, writeBuf=java.nio.DirectByteBuffer[pos=0 lim=32768 cap=32768], readBuf=java.nio.DirectByteBuffer[pos=5 lim=420 cap=32768], recovery=null, super=GridNioSessionImpl [locAddr=/10.97.184.106:5702, rmtAddr=/10.97.189.92:58788, createTime=1484945559174, closeTime=0, bytesSent=0, bytesRcvd=420, sndSchedTime=1484945559174, lastSndTime=1484945559174, lastRcvTime=1484945559185, readsPaused=false, filterChain=FilterChain[filters=[GridNioCodecFilter [parser=o.a.i.i.util.nio.GridDirectParser#21e93eaf, directMode=true], GridConnectionBytesVerifyFilter], accepted=true]]
ERROR 12:52:39,189-0800 [*Initialization*] communication.tcp.TcpCommunicationSpi: Closing NIO session because of unhandled exception.
class org.apache.ignite.internal.util.nio.GridNioException: Invalid message type: -84
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:1595)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.bodyInternal(GridNioServer.java:1516)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.body(GridNioServer.java:1289)
at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
at java.lang.Thread.run(Thread.java:745)
Caused by: class org.apache.ignite.IgniteException: Invalid message type: -84
at org.apache.ignite.internal.managers.communication.GridIoMessageFactory.create(GridIoMessageFactory.java:805)
at org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi$5.create(TcpCommunicationSpi.java:1631)
at org.apache.ignite.internal.util.nio.GridDirectParser.decode(GridDirectParser.java:76)
at org.apache.ignite.internal.util.nio.GridNioCodecFilter.onMessageReceived(GridNioCodecFilter.java:104)
at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:107)
at org.apache.ignite.internal.util.nio.GridConnectionBytesVerifyFilter.onMessageReceived(GridConnectionBytesVerifyFilter.java:113)
at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:107)
at org.apache.ignite.internal.util.nio.GridNioServer$HeadFilter.onMessageReceived(GridNioServer.java:2332)
at org.apache.ignite.internal.util.nio.GridNioFilterChain.onMessageReceived(GridNioFilterChain.java:173)
at org.apache.ignite.internal.util.nio.GridNioServer$DirectNioClientWorker.processRead(GridNioServer.java:918)
at org.apache.ignite.internal.util.nio.GridNioServer$AbstractNioClientWorker.processSelectedKeysOptimized(GridNioServer.java:1583)
... 4 more
Version information.
>>> +----------------------------------------------------------------------+
>>> Ignite ver. 1.8.0#20161205-sha1:9ca40dbeb7d559fcb299bdb6f5c90cdf8ce7e533
>>> +----------------------------------------------------------------------+
>>> OS name: Windows Server 2012 R2 6.3 amd64
>>> CPU(s): 2
>>> Heap: 3.6GB
>>> VM name: 13752#host
>>> Grid name: T-XXX
>>> Local node [ID=983EC5A0-2D9A-40C9-B4C3-3D59739BDDB9, order=1, clientMode=false]
>>> Local node addresses: [hostname.example.com/0:0:0:0:0:0:0:1, /10.97.184.106, /127.0.0.1]
>>> Local ports: TCP:5702 TCP:5703 TCP:5705
One of the similar issues I've found in my research is that it is recommended to disable the shared memory feature (setSharedMemoryPort -1) as a first step in removing a problem like this.
The server is running on Windows and the other server joining the cache is on OSX.
INFO 12:50:17,569-0800 [*Initialization*] ignite.internal.IgniteKernal%T-XXX: OS: Windows Server 2012 R2 6.3 amd64
How do I prevent these errors? Have I configured the cluster poorly or is there an incompatibility between the two machines I am using?
Very likely it's a misconfiguration issue. This can happen if discovery SPI on one node tries to connect to communication SPI on another node. See this post: http://apache-ignite-users.70518.x6.nabble.com/Invalid-message-type-84-error-td9869.html
This the program that I am running
package IgniteCache.IgniteCache1;
import org.apache.ignite.Ignite;
import org.apache.ignite.Ignition;
import org.junit.Test;
public class HelloWorldCompute
{
public static void main(String[] args) throws InterruptedException
{
{
try(Ignite ignite=Ignition.start())
{
ignite.compute().broadcast(()->System.out.println("Hello World"));
}
}
}
}
I am running the above code in my eclipse. after creating two nodes for apache ignite I am getting the following error in eclipse after running
[16:41:16] (wrn) Default Spring XML file not found (is IGNITE_HOME set?):
config/default-config.xml
Oct 24, 2016 4:41:16 PM java.util.logging.LogManager$RootLogger log
SEVERE: Failed to resolve default logging config file:
config/java.util.logging.properties
[16:41:16] __________ ________________
[16:41:16] / _/ ___/ |/ / _/_ __/ __/
[16:41:16] _/ // (7 7 // / / / / _/
[16:41:16] /___/\___/_/|_/___/ /_/ /___/
[16:41:16]
[16:41:16] ver. 1.5.0-b1#20151202-sha1:062d440c
[16:41:16] 2015 Copyright(C) Apache Software Foundation
[16:41:16]
[16:41:16] Ignite documentation: http://ignite.apache.org
[16:41:16]
[16:41:16] Quiet mode.
[16:41:16] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[16:41:16]
[16:41:16] OS: Windows 8.1 6.3 amd64
[16:41:16] VM information: Java(TM) SE Runtime Environment 1.8.0_92-b14 Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 25.92-b14
[16:41:16] Initial heap size is 128MB (should be no less than 512MB, use - Xms512m -Xmx512m).
[16:41:17] Configured plugins:
[16:41:17] ^-- None
[16:41:17]
[16:41:17] Security status [authentication=off, tls/ssl=off]
Oct 24, 2016 4:41:18 PM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Failed to start manager: GridManagerAdapter [enabled=true, name=o.a.i.i.managers.discovery.GridDiscoveryManager]
class org.apache.ignite.IgniteCheckedException: Failed to start SPI: TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000, ackTimeout=5000, reconCnt=10, maxAckTimeout=600000, forceSrvMode=false, clientReconnectDisabled=false]
at org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:255)
at org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDis coveryManager.java:660)
at org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1500)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:915)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1618)
at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx
.java:1485)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:965)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:494)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:470)
at org.apache.ignite.Ignition.start(Ignition.java:303)
IgniteCache.IgniteCache1.HelloWorldCompute.main
(HelloWorldCompute.java:12)
Caused by: class org.apache.ignite.spi.IgniteSpiException: Local node and remote node have different version numbers (node will not join, Ignite
does not support rolling updates, so versions must be exactly the same) [locBuildVer=1.7.0, rmtBuildVer=1.5.0-b1, locNodeAddrs=[gopi/0:0:0:0:0:0:0:1, 2001:0:9d38:6ab8:1455:823d:82c1:2a3d/127.0.0.1, /172.17.7.70, /2001:0:9d38:6ab8:1455:823d:82c1:2a3d], rmtNodeAddrs=[gopi/0:0:0:0:0:0:0:1,
gopi/127.0.0.1, /172.17.7.70,
/2001:0:9d38:6ab8:1455:823d:82c1:2a3d], locNodeId=10922b26-14b0-4151-a503-
dca273e]
While in the command prompt I am getting the below error
C:\apache-ignite-fabric-1.7.0-bin\bin>ignite.bat
[17:57:10] __________ ________________
[17:57:10] / _/ ___/ |/ / _/_ __/ __/
[17:57:10] _/ // (7 7 // / / / / _/
[17:57:10] /___/\___/_/|_/___/ /_/ /___/
[17:57:10]
[17:57:10] ver. 1.7.0#20160801-sha1:383273e3
[17:57:10] 2016 Copyright(C) Apache Software Foundation
[17:57:10]
[17:57:10] Ignite documentation: http://ignite.apache.org
[17:57:10]
[17:57:10] Quiet mode.
[17:57:10] ^-- Logging to file 'C:\apache-ignite-fabric-1.7.0- bin\work\log\ig
ite-3f8aa05c.0.log'
[17:57:10] ^-- To see **FULL** console log here add -
DIGNITE_QUIET=false or "
v" to ignite.{sh|bat}
[17:57:10]
[17:57:10] OS: Windows 8.1 6.3 amd64
[17:57:10] VM information: Java(TM) SE Runtime Environment 1.8.0_92-b14
Oracle
orporation Java HotSpot(TM)
64-Bit Server VM 25.92-b14
[17:57:10] Configured plugins:
[17:57:10] ^-- None
[17:57:10]
[17:57:10] Security status [authentication=off, tls/ssl=off]
[17:57:13] To start Console Management & Monitoring run ignitevisorcmd.
{sh|bat}
[17:57:13]
[17:57:13] Ignite node started OK (id=3f8aa05c)
[17:57:13] Topology snapshot [ver=1, servers=1, clients=0, CPUs=4,
heap=1.0GB]
[17:57:42] Topology snapshot [ver=2, servers=2, clients=0, CPUs=4,
heap=2.0GB]
[18:03:16,345][SEVERE][tcp-disco-multicast-addr-rcvr-#23%null%]
[TcpDiscoveryMul
icastIpFinder] Failed to request nodes addresses.
java.net.SocketException: bad argument for IP_MULTICAST_IF: address not
bound t
any interface
at java.net.TwoStacksPlainDatagramSocketImpl.socketNativeSetOption(Nati
e Method)
at
java.net.TwoStacksPlainDatagramSocketImpl.socketSetOption(TwoStacksP
ainDatagramSocketImpl.java:146)
at java.net.AbstractPlainDatagramSocketImpl.setOption(AbstractPlainData
ramSocketImpl.java:309)
at java.net.MulticastSocket.setInterface(MulticastSocket.java:471)
at org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryM
lticastIpFinder.requestAddresses(TcpDiscoveryMulticastIpFinder
.java:547)
at org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryM
lticastIpFinder.access$700(TcpDiscoveryMulticastIpFinder.java:80)
at org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryM
lticastIpFinder$AddressReceiver.body
(TcpDiscoveryMulticastIpFinder.java:758)
at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.checkFailedError
(TcpDiscoverySpi.java:1627)
at org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology
(ServerImpl.java:879)
at org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart
(ServerImpl.java:328)
at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart
(TcpDiscoverySpi.java:1815)
at org.apache.ignite.internal.managers.GridManagerAdapter
.startSpi(GridManagerAdapter.java:252)
... 10 more
Oct 24, 2016 4:41:18 PM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Got exception while starting (will rollback startup routine).
class org.apache.ignite.IgniteCheckedException: Failed to start manager:
GridManagerAdapter [enabled=true,
name=org.apache.ignite.internal.managers.discovery
.GridDiscoveryManager]
at org.apache.ignite.internal.IgniteKernal.startManager
(IgniteKernal.java:1505)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:915)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.
start0(IgnitionEx.java:1618)
at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start
(IgnitionEx.java:1485)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:965)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:494)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:470)
at org.apache.ignite.Ignition.start(Ignition.java:303)
at IgniteCache.IgniteCache1.HelloWorldCompute
.main(HelloWorldCompute.java:12)
Caused by: class org.apache.ignite.IgniteCheckedException:
Failed to start SPI: TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000,
ackTimeout=5000, reconCnt=10, maxAckTimeout=600000,
forceSrvMode=false, clientReconnectDisabled=false]
at org.apache.ignite.internal.managers.GridManagerAdapter
.startSpi(GridManagerAdapter.java:255)
at org.apache.ignite.internal.managers.discovery.
GridDiscoveryManager.start
(GridDiscoveryManager.java:660)
at org.apache.ignite.internal.IgniteKernal.startManager
(IgniteKernal.java:1500)
... 8 more
Caused by: class org.apache.ignite.spi.IgniteSpiException
: Local node and remote node have different version numbers (node will not
join, Ignite does not support rolling updates, so versions
must be exactly the same) [locBuildVer=1.7.0, rmtBuildVer=1.5.0-b1,
locNodeAddrs=[gopi/0:0:0:0:0:0:0:1,
2001:0:9d38:6ab8:1455:823d:82c1:2a3d/127.0.0.1,
/172.17.7.70, /2001:0:9d38:6ab8:1455:823d:82c1:2a3d], rmtNodeAddrs=
[gopi/0:0:0:0:0:0:0:1, gopi/127.0.0.1, /172.17.7.70,
/2001:0:9d38:6ab8:1455:823d:82c1:2a3d], locNodeId=10922b26-14b0-4151-a503-
75e83c241278, rmtNodeId=edfc9197-3d0b-4d19-bd8a-94a93dca273e]
I am using windows 8.1 and my firewall is off no antivirus..
1)Because ignite services are running with different configuration files in same server(it may be one reason)
#
service 1) [stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
service 2) [stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-ignite.xml"
#
#terminal 1
[stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[15:17:55] __________ ________________
[15:17:55] / _/ ___/ |/ / _/_ __/ __/
[15:17:55] _/ // (7 7 // / / / / _/
[15:17:55] /___/\___/_/|_/___/ /_/ /___/
[15:17:55]
[15:17:55] ver. 1.5.0-b1#20151202-sha1:062d440c
[15:17:55] 2015 Copyright(C) Apache Software Foundation
[15:17:55]
[15:17:55] Ignite documentation: http://ignite.apache.org
[15:17:55]
[15:17:55] Quiet mode.
[15:17:55] ^-- Logging to file '/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/work/log/ignite-5fa97ab6.0.log'
[15:17:55] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[15:17:55]
[15:17:55] OS: Linux 3.10.0-327.el7.x86_64 amd64
[15:17:55] VM information: OpenJDK Runtime Environment 1.8.0_102-b14 Oracle Corporation OpenJDK 64-Bit Server VM 25.102-b14
[15:17:55] Configured plugins:
[15:17:55] ^-- None
[15:17:55]
[15:17:55] Security status [authentication=off, tls/ssl=off]
[15:17:57] Performance suggestions for grid (fix if possible)
[15:17:57] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[15:17:57] ^-- Decrease number of backups (set 'keyBackups' to 0)
[15:17:57]
[15:17:57] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[15:17:57]
[15:17:57] Ignite node started OK (id=5fa97ab6)
[15:17:57] Topology snapshot [ver=1, servers=1, clients=0, CPUs=4, heap=1.0GB]
[15:18:06] New version is available at ignite.apache.org: 1.7.0
[15:18:10] Topology snapshot [ver=2, servers=2, clients=0, CPUs=4, heap=2.0GB]
[15:18:11] Topology snapshot [ver=3, servers=1, clients=0, CPUs=4, heap=1.0GB]
########################terminal 2
#
[stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-ignite.xml"
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[15:18:08] __________ ________________
[15:18:08] / _/ ___/ |/ / _/_ __/ __/
[15:18:08] _/ // (7 7 // / / / / _/
[15:18:08] /___/\___/_/|_/___/ /_/ /___/
[15:18:08]
[15:18:08] ver. 1.5.0-b1#20151202-sha1:062d440c
[15:18:08] 2015 Copyright(C) Apache Software Foundation
[15:18:08]
[15:18:08] Ignite documentation: http://ignite.apache.org
[15:18:08]
[15:18:08] Quiet mode.
[15:18:08] ^-- Logging to file '/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/work/log/ignite-feae7ff1.0.log'
[15:18:08] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[15:18:08]
[15:18:08] OS: Linux 3.10.0-327.el7.x86_64 amd64
[15:18:08] VM information: OpenJDK Runtime Environment 1.8.0_102-b14 Oracle Corporation OpenJDK 64-Bit Server VM 25.102-b14
[15:18:08] Configured plugins:
[15:18:08] ^-- None
[15:18:08]
[15:18:09] Security status [authentication=off, tls/ssl=off]
[15:18:10,964][SEVERE][main][IgniteKernal] Failed to start manager: GridManagerAdapter [enabled=true, name=o.a.i.i.managers.discovery.GridDiscoveryManager]
class org.apache.ignite.IgniteCheckedException: Remote node has peer class loading enabled flag different from local [locId8=feae7ff1, locPeerClassLoading=true, rmtId8=5fa97ab6, rmtPeerClassLoading=false, rmtAddrs=[ril-srv-sp4/0:0:0:0:0:0:0:1%lo, /127.0.0.1, /192.168.1.14]]
2)
Exception getting in second Service ,if we use common config files for two services it will work
service 1) [stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
service 2) [stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
###########################terminal 1
[stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[15:25:41] __________ ________________
[15:25:41] / _/ ___/ |/ / _/_ __/ __/
[15:25:41] _/ // (7 7 // / / / / _/
[15:25:41] /___/\___/_/|_/___/ /_/ /___/
[15:25:41]
[15:25:41] ver. 1.5.0-b1#20151202-sha1:062d440c
[15:25:41] 2015 Copyright(C) Apache Software Foundation
[15:25:41]
[15:25:41] Ignite documentation: http://ignite.apache.org
[15:25:41]
[15:25:41] Quiet mode.
[15:25:41] ^-- Logging to file '/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/work/log/ignite-ed543f4a.0.log'
[15:25:41] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[15:25:41]
[15:25:41] OS: Linux 3.10.0-327.el7.x86_64 amd64
[15:25:41] VM information: OpenJDK Runtime Environment 1.8.0_102-b14 Oracle Corporation OpenJDK 64-Bit Server VM 25.102-b14
[15:25:41] Configured plugins:
[15:25:41] ^-- None
[15:25:41]
[15:25:41] Security status [authentication=off, tls/ssl=off]
[15:25:43] Performance suggestions for grid (fix if possible)
[15:25:43] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[15:25:43] ^-- Decrease number of backups (set 'keyBackups' to 0)
[15:25:43]
[15:25:43] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[15:25:43]
[15:25:43] Ignite node started OK (id=ed543f4a)
[15:25:43] Topology snapshot [ver=1, servers=1, clients=0, CPUs=4, heap=1.0GB]
[15:25:52] New version is available at ignite.apache.org: 1.7.0
[15:25:58] Topology snapshot [ver=2, servers=2, clients=0, CPUs=4, heap=2.0GB]
###########################termainal 2
[stp#ril-srv-sp4 bin]$ ./ignite.sh "/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/examples/config/example-cache.xml"
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[15:25:56] __________ ________________
[15:25:56] / _/ ___/ |/ / _/_ __/ __/
[15:25:56] _/ // (7 7 // / / / / _/
[15:25:56] /___/\___/_/|_/___/ /_/ /___/
[15:25:56]
[15:25:56] ver. 1.5.0-b1#20151202-sha1:062d440c
[15:25:56] 2015 Copyright(C) Apache Software Foundation
[15:25:56]
[15:25:56] Ignite documentation: http://ignite.apache.org
[15:25:56]
[15:25:56] Quiet mode.
[15:25:56] ^-- Logging to file '/home/stp/ignite/apache-ignite-fabric-1.5.0-b1-bin/work/log/ignite-169dab96.0.log'
[15:25:56] ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
[15:25:56]
[15:25:56] OS: Linux 3.10.0-327.el7.x86_64 amd64
[15:25:56] VM information: OpenJDK Runtime Environment 1.8.0_102-b14 Oracle Corporation OpenJDK 64-Bit Server VM 25.102-b14
[15:25:56] Configured plugins:
[15:25:56] ^-- None
[15:25:56]
[15:25:56] Security status [authentication=off, tls/ssl=off]
[15:25:59] Performance suggestions for grid (fix if possible)
[15:25:59] To disable, set -DIGNITE_PERFORMANCE_SUGGESTIONS_DISABLED=true
[15:25:59] ^-- Decrease number of backups (set 'keyBackups' to 0)
[15:25:59]
[15:25:59] To start Console Management & Monitoring run ignitevisorcmd.{sh|bat}
[15:25:59]
[15:25:59] Ignite node started OK (id=169dab96)
[15:25:59] Topology snapshot [ver=2, servers=2, clients=0, CPUs=4, heap=2.0GB]
[15:26:06] New version is available at ignite.apache.org: 1.7.0
[15:27:13] Topology snapshot [ver=3, servers=1, clients=0, CPUs=4, heap=1.0GB]
I am getting this error when writer.optimize() called I have caugh all exceptions but hopeless .writer is an instance of apache lucene Indexwriter and tomcat collapse when optimizing the indexwriter.I am trying to index a large number of file its works for a few number of file but when number of files increase it cause to tomcat fail.
logger.info("Optimizing optimazing...");
this.writer.optimize();
logger.info("Optimizing closing...");
this.writer.close();
logger.info("Optimazide and closed succesfully...");
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fe6f8c38e90, pid=10316, tid=140629887768320
#
# JRE version: 6.0_20-b20
# Java VM: OpenJDK 64-Bit Server VM (19.0-b09 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.9.7
# Distribution: Ubuntu 10.10, package 6b20-1.9.7-0ubuntu1
# Problematic frame:
# V [libjvm.so+0x54ae90]
#
# If you would like to submit a bug report, please include
# instructions how to reproduce the bug and visit:
# https://bugs.launchpad.net/ubuntu/+source/openjdk-6/
#
--------------- T H R E A D ---------------
Current thread (0x00000000023e0000): JavaThread "CompilerThread0" daemon [_thread_in_native, id=10333, stack(0x00007fe6f2715000,0x00007fe6f2816000)]
siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000008
Registers:
RAX=0x0000000000000000, RBX=0x00007fe6f2812930, RCX=0x00007fe6ec03e9e0, RDX=0x0000000000002000
RSP=0x00007fe6f2811150, RBP=0x00007fe6f2811190, RSI=0x00007fe6e43a20f0, RDI=0x0000000000000000
R8 =0x00007fe6e43f5a70, R9 =0x00007fe6f2812930, R10=0x00007fe6ec6f7948, R11=0x0000000000000000
R12=0x00007fe6edd326b0, R13=0x00007fe6ec6f7948, R14=0x00007fe6f2812950, R15=0x00007fe6ec068990
RIP=0x00007fe6f8c38e90, EFL=0x0000000000010206, CSGSFS=0x0000000000000033, ERR=0x0000000000000004
TRAPNO=0x000000000000000e
Register to memory mapping:
RAX=0x0000000000000000
0x0000000000000000 is pointing to unknown location
RBX=0x00007fe6f2812930
0x00007fe6f2812930 is pointing into the stack for thread: 0x00000000023e0000
"CompilerThread0" daemon prio=10 tid=0x00000000023e0000 nid=0x285d runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
RCX=0x00007fe6ec03e9e0
0x00007fe6ec03e9e0 is pointing to unknown location
RDX=0x0000000000002000
0x0000000000002000 is pointing to unknown location
RSP=0x00007fe6f2811150
0x00007fe6f2811150 is pointing into the stack for thread: 0x00000000023e0000
"CompilerThread0" daemon prio=10 tid=0x00000000023e0000 nid=0x285d runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
RBP=0x00007fe6f2811190
0x00007fe6f2811190 is pointing into the stack for thread: 0x00000000023e0000
"CompilerThread0" daemon prio=10 tid=0x00000000023e0000 nid=0x285d runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
RSI=0x00007fe6e43a20f0
0x00007fe6e43a20f0 is pointing to unknown location
RDI=0x0000000000000000
0x0000000000000000 is pointing to unknown location
R8 =0x00007fe6e43f5a70
0x00007fe6e43f5a70 is pointing to unknown location
R9 =0x00007fe6f2812930
0x00007fe6f2812930 is pointing into the stack for thread: 0x00000000023e0000
"CompilerThread0" daemon prio=10 tid=0x00000000023e0000 nid=0x285d runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
R10=0x00007fe6ec6f7948
0x00007fe6ec6f7948 is pointing to unknown location
R11=0x0000000000000000
0x0000000000000000 is pointing to unknown location
R12=0x00007fe6edd326b0
0x00007fe6edd326b0 is pointing to unknown location
R13=0x00007fe6ec6f7948
0x00007fe6ec6f7948 is pointing to unknown location
R14=0x00007fe6f2812950
0x00007fe6f2812950 is pointing into the stack for thread: 0x00000000023e0000
"CompilerThread0" daemon prio=10 tid=0x00000000023e0000 nid=0x285d runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
R15=0x00007fe6ec068990
0x00007fe6ec068990 is pointing to unknown location
Top of Stack: (sp=0x00007fe6f2811150)
0x00007fe6f2811150: 00007fe6e4522cd0 00007fe6f2811420
0x00007fe6f2811160: 00007fe6f2811190 00007fe6f2812930
0x00007fe6f2811170: 0000000000000002 00007fe6edd326b0
0x00007fe6f2811180: 00007fe6ec5d6430 00007fe6f2811420
0x00007fe6f2811190: 00007fe6f2811200 00007fe6f8c3941b
0x00007fe6f28111a0: 0000000000000002 00007fe600000100
0x00007fe6f28111b0: 00007fe600000001 00007fe6f28132d0
w-p 00021000 08:01 17301749 /lib/ld-2.12.1.so
7fe6fa020000-7fe6fa021000 rw-p 00000000 00:00 0
7fffd5558000-7fffd5579000 rw-p 00000000 00:00 0 [stack]
7fffd55ff000-7fffd5600000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
VM Arguments:
jvm_args: -Djava.util.logging.config.file=/home/murat/Desktop/servers/apache-tomcat-6.0.24/conf/logging.properties -Dhttp.nonProxyHosts=localhost|127.0.0.1|expertPC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -agentlib:jdwp=transport=dt_socket,address=11550,server=y,suspend=n -Djava.endorsed.dirs=/home/murat/Desktop/servers/apache-tomcat-6.0.24/endorsed -Dcatalina.base=/home/murat/Desktop/servers/apache-tomcat-6.0.24 -Dcatalina.home=/home/murat/Desktop/servers/apache-tomcat-6.0.24 -Djava.io.tmpdir=/home/murat/Desktop/servers/apache-tomcat-6.0.24/temp
java_command: org.apache.catalina.startup.Bootstrap start
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=/usr/lib/jvm/java-6-openjdk
JRE_HOME=/usr/lib/jvm/java-6-openjdk
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
USERNAME=murat
LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64
SHELL=/bin/bash
DISPLAY=:0.0
Signal Handlers:
SIGSEGV: [libjvm.so+0x723630], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGBUS: [libjvm.so+0x723630], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGFPE: [libjvm.so+0x5e0000], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGPIPE: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGXFSZ: [libjvm.so+0x5e0000], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGILL: [libjvm.so+0x5e0000], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGUSR2: [libjvm.so+0x5df710], sa_mask[0]=0x00000004, sa_flags=0x10000004
SIGHUP: [libjvm.so+0x5e2180], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
SIGTERM: [libjvm.so+0x5e2180], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
SIGQUIT: [libjvm.so+0x5e2180], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
--------------- S Y S T E M ---------------
OS:Ubuntu 10.10 (maverick)
uname:Linux 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64
libc:glibc 2.12.1 NPTL 2.12.1
rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
load average:0.77 0.30 0.14
/proc/meminfo:
MemTotal: 4054828 kB
MemFree: 176928 kB
Buffers: 207640 kB
Cached: 1332820 kB
SwapCached: 17608 kB
Active: 2419624 kB
Inactive: 1004992 kB
Active(anon): 1834536 kB
Inactive(anon): 67792 kB
Active(file): 585088 kB
Inactive(file): 937200 kB
Unevictable: 16 kB
Mlocked: 16 kB
SwapTotal: 11876348 kB
SwapFree: 11687616 kB
Dirty: 3508 kB
Writeback: 32 kB
AnonPages: 1873148 kB
Mapped: 197036 kB
Shmem: 18240 kB
Slab: 157916 kB
SReclaimable: 131452 kB
SUnreclaim: 26464 kB
KernelStack: 3928 kB
PageTables: 32140 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 13903760 kB
Committed_AS: 3427468 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 323536 kB
VmallocChunk: 34359412360 kB
HardwareCorrupted: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 272384 kB
DirectMap2M: 3919872 kB
CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1
Memory: 4k page, physical 4054828k(176928k free), swap 11876348k(11687616k free)
vm_info: OpenJDK 64-Bit Server VM (19.0-b09) for linux-amd64 JRE (1.6.0_20-b20), built on Feb 23 2011 09:05:53 by "buildd" with gcc 4.4.5
time: Mon Jun 6 22:24:11 2011
elapsed time: 2076 seconds
As Stéphane says, try different JREs to see if you can get a different error message. There's a chance (but hard to quantify) that this is related to reaching a memory limit, but it'll be hard to be sure unless you do get an error saying which one!
Use sun/oracle java jdk, not the open jdk...
Regards,
Stéphane
Since it is most likely a bug in the JVM, the first thing I would try is updating your JVM to Java 6 update 25. You could try the Sun/Oracle JVM, but it likely to be the same.
I am assuming you are not using an JNI libraries?