dubbo 配置输出Dubbo_JStack.log的 dump.directory 路径
<dubbo:application name="${server.name}" >
<dubbo:parameter key="dump.directory" value="${account.dubbo.dump.directory:/root/dubbo_dump/}${server.name}${server.id}" />
</dubbo:application> 或者
@Bean
public ApplicationConfig applicationConfig() {
ApplicationConfig applicationConfig = new ApplicationConfig();
applicationConfig.setName(serverName);
Map<String, String> m = new HashMap<>();
m.put("dump.directory", bbDubboDumpDirectory + serverName + serverId);
applicationConfig.setParameters(m);
return applicationConfig;
}