Posts

Showing posts from October, 2017

Ignite Running in Static IP multicast mode

Apache Ignite throws multicast exception in local machine when multicast is on and internet is connect. The following is an example of multicast IP discovery  <!-- Explicitly configure TCP discovery SPI to provide list of initial nodes. -->         <property name="discoverySpi">             <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">                 <property name="ipFinder">                      <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder. multicast . TcpDiscoveryMulticastIpFinder ">                         <property name="addresses">                             <list>               ...

NSSM service eats 100% CPU

Image
NSSM logstash service can cause a fatal CPU hungry outage in your clients unless you override the AppExit default value. By default it comes as default 'Restart' To change it to ' Stop service ' you need to run the following command nssm set logstash AppExit Default Exit It will change the service definition as follow Other v alid exit actions are: Restart Ignore Exit Suicide  

Reading a resource file in Spring boot

Some applications store XML files in src/main/resources folder and want to access it from a java class, using the following syntax   InputStream ioStream = Application . class . getResourceAsStream (" template.xml "); But it returns a null object. The problem with spring boot webapp is the file is actually a classpath resource. To access it use the following syntax InputStream ioStream = Application . class . getClassLoader() . getResourceAsStream (" template.xml ");