开发者社区 > 云效DevOps > 正文

云效运行时warning怎么办?

云效运行时warning怎么办?
97825919552e3c5a315dc8e5979f9412.png
Picked up JAVA_TOOL_OPTIONS: -javaagent:/home/admin/.opt/ArmsAgent/arms-bootstrap-1.7.0-SNAPSHOT.jar -Dmse.enable=true -Doneagent.region=cn-hangzhou -Dmse.licenseKey=co65y35gsv@6f2a735dd44d812 -Dmse.appId=co65y35gsv@a380193ce891bcf -Dmse.appName=bishan-dev-portal-dev-v162 2024-02-06 14:09:20 [INFO ](AliyunJavaAgentBootstrap) Set MSE system property success: profiler.micro.service.auth.enable=true~profiler.micro.service.canary.enable=true~profiler.micro.service.metadata.report.enable=true~profiler.micro.service.mock.enable=true~profiler.micro.service.http.server.enable=true~profiler.micro.service.http.server.port=54199~ 2024-02-06 14:09:20 [INFO ](AliyunJavaAgentBootstrap) Set ONE_AGENT_PROPERTY success: mse.enable=true~mse.regionId=cn-hangzhou~mse.licenseKey=co65y35gsv@6f2a735dd44d812~mse.appId=co65y35gsv@a380193ce891bcf~mse.appName=bishan-dev-portal-dev-v162~mse.namespace=default~oneagent.plugin.arms-agent.enabled=true~oneagent.plugin.mse-agent.enabled=true~ahas.sentinel.prefix.spring.webmvc.enabled=true~ahas.switch.agent.plugin.group.enabled=true~profiler.micro.service.mse.version=pro~ OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended 2024-02-06 14:09:20 [INFO ](AliyunJavaAgentBootstrap) Load Aliyun Java Agent (previously known as Arms Agent) version: 3.0.7, report to region: cn-hangzhou OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended 2024-02-06 14:09:26 [INFO ](AliyunJavaAgentBootstrap) arms agent start cost: 6397ms no main manifest attribute, in /app/bishan-dev-portal-start-1.0.1-SNAPSHOT.jar
no main manifest attribute, in /app/bishan-dev-portal-start-1.0.1-SNAPSHOT.jar正常的启动日志是没有这一行的, 之后应该是spring-boot启动的日志了, 但是现在到这儿就没了

展开
收起
你鞋带开了~ 2024-02-14 09:51:41 102 0
2 条回答
写回答
取消 提交回答
  • 面对过去,不要迷离;面对未来,不必彷徨;活在今天,你只要把自己完全展示给别人看。

    云效运行时的warning可能是由于代码中的某些不规范或者不推荐的做法导致的。虽然这些警告不会直接影响程序的运行,但是为了提高代码质量和可读性,建议尽量解决这些警告。

    解决方法如下:

    1. 仔细阅读警告信息,了解警告的原因和具体位置。
    2. 根据警告信息,检查相关代码,找出可能的问题。
    3. 修改代码,消除警告。这可能包括改进代码逻辑、使用更合适的数据结构、遵循最佳实践等。
    4. 重新运行代码,确认警告是否已经消除。

    如果警告无法消除,可以考虑使用注释或者特殊的标记来说明为什么保留这个警告,以便其他开发者了解情况。

    2024-02-16 17:23:19
    赞同 展开评论 打赏
  • 报错显示这个jar包没有主类,再定位一下代码有没有什么问题
    --此回答整理自钉群“云效交付域答疑群”

    2024-02-14 10:06:30
    赞同 展开评论 打赏

云效,企业级一站式研发协同平台,数十万企业都在用。支持公共云、专有云和混合云多种部署形态,通过云原生新技术和研发新模式,助力创新创业和数字化转型企业快速实现研发敏捷和组织敏捷,打造“双敏”组织,实现多倍效能提升。

热门讨论

热门文章

相关电子书

更多
云效助力企业软件供应链生产效能提升 立即下载
云效 DevOps 客户案例集(公共云) 立即下载
云效专有云服务手册下载(2019最新版) 立即下载