Pivotal Gemfire gfsh Locator could not find a JMX Manager

332 Views Asked by At

The geode locator and server are started by the embedded spring data geode running within a spring boot application

Trying to connect with gfsh:

gfsh>connect
Connecting to Locator at [host=localhost, port=10334] ..
Locator could not find a JMX Manager

I am getting this:

Locator could not find a JMX Manager

The application logs for gemfire show:

Starting server location for Distribution Locator on localhost/127.0.0.1[10334]

Also, the logs confirm that these settings were applied:

jmx-manager=true 
jmx-manager-start=true 
locators=localhost[10334]

Why this message then?

Maybe there is any other way to connect to an existing gemfire cache?

1

There are 1 best solutions below

8
Juan Ramos On

I'd suggest to use spring-boot-data-geodde directly and start your server and locator as follows:

@SpringBootApplication
@CacheServerApplication(name = "MySpringBootApacheGeodeCacheServerApplication")
@EnableLocator
@EnableManager
public SpringBootApacheGeodeCacheServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootApacheGeodeCacheServerApplication.class, args);
    }
}

Please have a look at Embedded (Peer & Server) Cache Applications for further details. Hope this helps, cheers.