腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(32)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
为什么DEFAULT_NUM_DIRECT_ARENA是从PlatformDependent.
maxDirectMemory
()派生的?
默认情况下,Netty通常会设置io.netty.
maxDirectMemory
=MaxDirectMemorySize,并在可能的情况下启用“没有更干净的”缓冲区。但是,当您试图显式地将io.netty.
maxDirectMemory
和MaxDirectSize设置为不同的值时,事情似乎变得有点奇怪。我怀疑这可能与缩小的
MaxDirectMemory
大小有关,我最终发现了这一点,我认为这可以解释两者之间的差异。为什么在这里使用PlatformDependent.
maxDirectMemory
() (它将被设置为MaxDi
浏览 3
提问于2018-11-01
得票数 4
回答已采纳
1
回答
为Java应用程序设置
MaxDirectMemory
和MaxHeapMemory
从本文中,我假设可以使用-Xmx设置来限制堆的使用,而
MaxDirectMemory
设置可以用来限制堆之外的本机内存(图中的Guest内存)。但是,当我运行一个简单的程序时,结果是不同的。
浏览 6
修改于2016-12-16
得票数 8
回答已采纳
1
回答
如何为网络选择合适的chunkSize和numDirectArenas
如何相对于
maxDirectMemory
或load或我的应用程序的其他一些需求来选择
maxDirectMemory
和maxOrder?-Dio.netty.
maxDirectMemory
=1000-Dio.netty.allocator.numDirectArenas
浏览 0
提问于2021-09-22
得票数 0
1
回答
替换JDK 11对sun.misc.VM的访问
在OpenJDK 8中,可以访问sun.misc.VM并调用isDirectMemoryPageAligned和
maxDirectMemory
。
maxDirectMemory
用于报告内存统计数据以及提供为-XX:MaxDirectMemorySize配置的值的访问。在内部,它将限制允许的直接内存消耗。我已经尝试使用ManagementFactory.getMemoryMXBean().getNonHeapMemoryUsage().getMax()作为
maxDirectMemory
的替代品,但它总是返回
浏览 0
修改于2018-11-30
得票数 12
回答已采纳
1
回答
Netty 4.1.x直接内存监控
有没有一种无需设置即可监控直接内存使用的方法: -Dio.netty.
maxDirectMemory
=0
浏览 2
提问于2017-10-23
得票数 1
1
回答
ByteBuf使用的直接缓冲区没有完全释放
-Dio.netty.
maxDirectMemory
=0 -Dio.netty.leakDetection.level=PARANOID 我在下面问了一些相关的问题。
浏览 3
提问于2018-06-22
得票数 1
回答已采纳
2
回答
为什么XX:MaxDirectMemorySize不能限制Unsafe.allocateMemory?
NoSuchFieldException, IllegalAccessException { System.out.println(sun.misc.VM.
maxDirectMemory
浏览 5
修改于2017-05-23
得票数 11
回答已采纳
2
回答
OOM使用320 x 16 320 DirectByteBuffer对象杀死JVM
MaxGCPauseMillis=1000 -XX:MaxDirectMemorySize=500m -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -Dio.netty.
maxDirectMemory
浏览 1
提问于2021-04-13
得票数 4
2
回答
Flume :Exec源cat命令没有写在HDFS上
我正在尝试使用用于exec source.But的Flume将数据写入Hdfs -它总是以退出代码127结尾,并且它还显示了如下警告15/04/17 06:24:57 INFO tools.DirectMemoryUtils: Unable to get
浏览 12
提问于2015-04-17
得票数 0
回答已采纳
1
回答
如何以编程方式关闭Netty库调试输出?
io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available20:38:55.725 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.
maxDirectMemory
浏览 29
修改于2022-10-18
得票数 0
回答已采纳
1
回答
NoClassDefFoundError: ehcache中的sun/misc/VM,在运行时迁移到java9时
61 moreat org.terracotta.ehcachedx.util.Vm.
maxDirectMemory
浏览 1
提问于2017-10-09
得票数 0
1
回答
Flume脚本给出警告:未设置配置目录!使用--conf <dir>覆盖
更新警告: 16/10/18 10:10:05 WARN file.ReplayHandler: Ignoring /home/USER/.
浏览 0
修改于2016-10-19
得票数 0
1
回答
PulsarClient.builder()超长错误记录器
DEBUG internal.PlatformDependent - sun.misc.Unsafe: available main DEBUG internal.PlatformDependent - -Dio.netty.
maxDirectMemory
浏览 18
修改于2022-09-24
得票数 0
回答已采纳
1
回答
请问JDK17中ZGC log中有如下内容是否有问题?
、
、
、
OmitStackTraceInFastThrow -XX:MaxDirectMemorySize=256G -DPreloadBufferPool.MaxMemory=70% -Dio.netty.
maxDirectMemory
浏览 122
修改于2025-02-11
1
回答
不使用Maven部署ActiveMQ Artemis示例
Dio.netty.bitMode: 64 (sun.arch.data.model)[DEBUG] -Dio.netty.
maxDirectMemory
浏览 0
修改于2019-11-25
得票数 0
回答已采纳
1
回答
Flume:多个源将日志添加到单个接收器
/root/.flume/file-channel/data/log-916/06/14 14:38:10 INFO tools.DirectMemoryUtils
浏览 1
修改于2016-06-14
得票数 0
1
回答
Java代理库无法初始化: instrument
-Dfile.encoding=UTF-8, -Dio.netty.noPreferDirect=true, -Dclient.encoding.override=UTF-8, -Dio.netty.
maxDirectMemory
浏览 400
修改于2020-02-11
得票数 2
回答已采纳
1
回答
在deeplearning4j中可视化训练进度在启动服务器时抛出错误
io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available12:39:05.144 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.
maxDirectMemory
浏览 134
提问于2021-02-23
得票数 1
回答已采纳
1
回答
从bndtools/ OSGi运行时出现的Netty / Vertx错误
io.netty.util.internal.PlatformDependent - -Dio.netty.noUnsafe: false 17:00:05.995 [main] DEBUG io.netty.util.internal.PlatformDependent -
maxDirectMemory
浏览 17
修改于2017-01-13
得票数 1
3
回答
Riak java client,execute()从不返回
Dio.netty.noPreferDirect: false 17:19:40.900 [main] DEBUG i.n.util.internal.PlatformDependent - io.netty.
maxDirectMemory
浏览 0
修改于2016-12-16
得票数 2
第 2 页
领券