You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Tomcat temp目录生成大量gRPC Netty DLL文件,如何复用单个DLL?

问题:Tomcat temp目录生成大量gRPC相关DLL文件的解决方法

现象

  • 在Tomcat 9.0.43的temp目录中,发现大量命名格式为io_grpc_netty_shaded_netty_tcnative_windows_x86_<随机数>.dll的文件
  • 观察到Tomcat启动时至少会生成一个该类DLL文件,但不确定运行时是否会因某些操作额外生成

项目相关依赖

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-gcp-dependencies</artifactId>
            <version>1.2.8.RELEASE</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-gcp-starter-vision</artifactId>
        <version>1.2.8.RELEASE</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
        <version>2.4.3</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

需求

为避免生成过多DLL文件长期占用系统空间,希望找到方法让Java Web应用仅使用单个DLL文件

已尝试的方案及疑问

  • 试过某gRPC相关问题中的临时方案,但未奏效
  • 找到另一个日志工具相关的方案,但我使用Spring的ApplicationRunner执行任务,不确定该方案是否适用
  • 曾考虑在ApplicationRunner中添加删除DLL文件的指令,但并不认可这种方式

内容的提问来源于stack exchange,提问作者User1254

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 23:55:25