0

geode 定位器和服务器由运行在 spring boot 应用程序中的嵌入式 spring data geode 启动

尝试连接gfsh

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

我得到这个:

定位器找不到 JMX 管理器

gemfire 的应用程序日志显示:

localhost/127.0.0.1 [10334] 上的分发定位器的启动服务器位置

此外,日志确认应用了这些设置:

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

那为什么会出现这条消息?

也许还有其他方法可以连接到现有的 gemfire 缓存?

4

1 回答 1

2

我建议spring-boot-data-geodde直接使用并启动您的服务器和定位器,如下所示:

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

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

请查看嵌入式(对等和服务器)缓存应用程序以获取更多详细信息。希望这会有所帮助,干杯。

于 2019-07-24T13:17:16.777 回答