V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
pmispig
V2EX  ›  Java

请问 pinpoint 怎么设置支持 Spring Scheduler

  •  
  •   pmispig · 2020-04-26 11:29:51 +08:00 · 1832 次点击
    这是一个创建于 1463 天前的主题,其中的信息可能已经有所发展或是发生改变。
    目前有用的是这种
    profiler.entrypoint=foo.bar.MyClass.myMethod
    但是如果定时任务太多了,要分每个项目都单独设置就太麻烦了,
    配置里有个参数 profiler.spring.async.executor.class.names 没明白是干啥的
    2 条回复    2020-04-26 19:04:05 +08:00
    Aresxue
        1
    Aresxue  
       2020-04-26 17:46:40 +08:00
    ###########################################################
    # spring @Async
    ###########################################################
    profiler.spring.async.enable=true
    # Add custom AsyncTaskExecutor classes. Comma separated list of fully qualified class names. Wildcard not supported.
    # Default values
    # org.springframework.scheduling.concurrent.ConcurrentTaskExecutor
    # org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
    # org.springframework.core.task.SimpleAsyncTaskExecutor
    # org.springframework.scheduling.quartz.SimpleThreadPoolTaskExecutor
    # org.springframework.core.task.support.TaskExecutorAdapter
    # org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
    # org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
    # org.springframework.jca.work.WorkManagerTaskExecutor
    # org.springframework.scheduling.commonj.WorkManagerTaskExecutor
    profiler.spring.async.executor.class.names=
    pmispig
        2
    pmispig  
    OP
       2020-04-26 19:04:05 +08:00
    @Aresxue 这个没用。。。尴尬
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5668 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 06:34 · PVG 14:34 · LAX 23:34 · JFK 02:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.