ICode9

精准搜索请尝试: 精确搜索
  • [转]Windows上的valgrind--deleaker2021-12-02 10:03:43

    Valgrind is a developer tool for C++ developers used to find memory issues including C++ memory leak detection. Valgrind uses instrumentation to collect information about allocated and freed memory to gather complete information about memory blocks. Many

  • docker容器技术基础入门2021-12-01 12:33:18

    容器(Container) 容器是一种基础工具;泛指任何可以用于容纳其他物品的工具,可以部分或完全封闭,被用于容纳、储存、运输物品;物体可以被放置在容器中,而容器则可以保护内容物;人类使用容器的历史至少有十万年,甚至可能有数百万年的历史;容器的类型 瓶 - 指口部比腹部窄小、颈长的容器

  • idea Error: java: OutOfMemoryError: insufficient memory 的处理2021-12-01 12:03:01

    idea Error: java: OutOfMemoryError: insufficient memory处理 在更新项目代码或者运行项目时报错 OutOfMemoryError: insufficient memory,解决方式如下: 方式1: 点击file,选择Invalidate Caches 进行清理一下。 出现提示信息,点清理并重启idea岂可 方式2: 如果方式1还是无法解

  • idea 的Low Memory问题2021-11-30 21:32:09

    今天使用 idea 出现 Low Memory The IDE is running low on memory and this might affect performance. Please consider increasing available heap. 原因:   IDE内存不足 解决方法: 1.直接配置 选择上图里的 Configure,修改堆大小 2.通过配置修改  菜单 Help—>选择 Edit Cu

  • Using 1 worker with 2048MB memory limit 异常2021-11-29 15:34:42

    这里使用的是node 16版本,在家里电脑可以,但是公司电脑不行,不知道为啥 最后换了14版本,就可以了。 具体原因不是很清楚。我去设置node --max-old-space-size=4096 node_modules/webpack/bin/webpack.js --config webpack.config.js也不行 内存溢出问题。

  • Hadoop部分参数调优2021-11-28 12:02:13

    企业开发场景案例 需求: 从1G数据中,统计每个单词出现次数。服务器3台,每台配置4G内存,4核CPU,4线程。 需求分析: 1G / 128m = 8个MapTask;1个ReduceTask;1个mrAppMaster 平均每个节点运行10个 / 3台≈ 3个任务(4 3 3) HDFS参数调优 修改:hadoop-env.sh ​ export HDFS_NAMENODE_OPTS="-D

  • linux memory barrier2021-11-27 13:35:20

    linux memory barrier barrier() macro 2). 关于barrier()宏,jkl大师是这么说的:                 CPU越过内存屏障后,将刷新自己对存储器的缓冲状态。这条语句实际上不生成任何代码,但可使gcc在                 barrier()之后刷新寄存器对变量的分配。      

  • 力扣 - 剑指 Offer 10- II. 青蛙跳台阶问题2021-11-27 13:33:00

    题目 剑指 Offer 10- II. 青蛙跳台阶问题 思路1(递归 / 自顶向下) 这题就是和上一题剑指 Offer 10- I. 斐波那契数列基本一模一样,都是 fib(n) = fib(n-1) + fib(n-2) 这个递推公式,只是初始条件不一样啦:上一题是 0、1、1、2...,而本题是 1、1、2、3、5... 这题是很常见的一道入门递

  • 页面置换算法(FIFO,LRU)2021-11-26 09:32:37

    目录 FLFO(内存块3)  FLFO(内存块4) LRU(内存块4) 主函数 FLFO(内存块3)  FLFO(内存块4) 算法实现(java实现)(复制时注意添加主函数) static void first_in_first_out(int amount, int[] page, int memory_block) { int[][] memory = new int[memory_block][amount]; Str

  • Linux安装ElasticSearch以及Ik分词器2021-11-24 12:04:23

    最近开个新坑,就是在linux环境中操作开发环境,带大家玩转Linux,会整理出一篇Linux的专栏,欢迎大家订阅!! 富贵同学linux环境为CentOS7.8 版本。这次说一下ElasticSearch的安装 1.官方下载 https://www.elastic.co/cn/downloads/past-releases/elasticsearch-5-5-3 2.上传到服务器

  • 拨开由问题《linux下malloc最大可申请的内存》带来的重重疑云2021-11-24 01:00:21

    今天阅读相关书籍的时候看到 "进程中堆的最大申请数量" 这一问题,我们知道使用malloc分配内存是在堆Heap里面分配的,如果一台机器一共有8GB物理内存,空闲5GB,那么我们使用malloc( )就一定能够申请到这5GB内存吗?理论上来说确实如此,因为这些内存未被其它进程使用。但实际测试出来结果却

  • 【TPC-DS】trino+S3+hive+postgresql性能测试----异常问题与解决方案(九)2021-11-23 16:33:45

    问题一:./trino --server 10.201.0.125:8080 --catalog postgresql --schema public链接pg,执行show tables报错  解决:启动start-metastore /opt/hive-metastore/bin/start-metastore -p 9083   问题二:postgresql中执行./trino --server 10.201.0.125:8080 --catalog postgres

  • Prometheus配置告警规则2021-11-22 19:01:44

    https://www.cnblogs.com/linuxk/p/12036193.html 修改prometheus配置文件 指定prometheus的规则文件路径或者文件名 vim prometheus.yml rule_files: - 'rules/*_rules.yml' # - 'prometheus_rules.yml' # - "./rule/*.yaml" # - "first_rules.yml

  • 【linux启动】嵌入式Linux系统启动过程分析2021-11-21 16:35:00

    一、概述 嵌入式linux系统启动过程一般包含以下几个过程: 上电 执行IROM(芯片内部只读存储器)中固化的代码。 执行uboot 加载内核到内存,启动内核。 挂载根文件系统rootfs 执行其中的脚本和应用程序。 二、内核的几个组成部分介绍 1、uboot介绍 (1)概述 是一个通用的bootloader  

  • C:错误: C++ style comments are not allowed in ISO C902021-11-21 10:04:39

    错误 memory.c:1:12: error: initializer element is not constant memory.c:1:23: error: C++ style comments are not allowed in ISO C90 char *d = malloc(-1);//1000); ^ memory.c:1:23: error: (this will be reported only once per input f

  • NUMA Collections2021-11-19 21:07:14

    Simple intro: wiki entry Non-uniform memory access (NUMA) is a computer memory design used in multiprocessing, where the memory access time depends on the memory location relative to the processor. Under NUMA, a processor can access its own local memo

  • 2021-2022-1 20211318 《信息安全专业导论》第九周学习总结2021-11-19 19:00:55

    2021-2022-1 20211318《信息安全专业导论》第九周学习总结 作业信息 这个作业属于哪个课程 2021-2022-1信息安全专业导论 这个作业要求在哪里 2021-2022-1信息安全专业导论第九周作业 作业正文 2021-2022-1 20211318 《信息安全专业导论》第九周学习总结 教材学习内容

  • 20 | 删除数据后,为什么内存占用率还是很高?2021-11-19 17:58:29

    Redis核心技术与实战 实践篇 20 | 删除数据后,为什么内存占用率还是很高? 问题:删除数据,数据量已经不大了,为什么使用 top 命令查看时,Redis 依然占用了很多内存? 因为当数据删除后,Redis 释放的内存空间会由内存分配器管理,并不会立即返回给操作系统。所以,操作系统仍然会记录着给 Re

  • access2021-11-19 14:02:06

    access An access/slip road is a short road giving access to an expressway. What is an access road? Let's see some examples.1. The state approved plans for managing the road and lands in July 2018, but have run into obstacles keeping the access road o

  • Pytorch训练时显存分配过程探究2021-11-19 11:32:19

    参考: https://blog.csdn.net/qq_37189298/article/details/110945128     ========================================       代码: import torch from torch import cuda import time x = torch.zeros([1,1024,1024,128*2], requires_grad=True, device='cuda:0')

  • HDFS集群启动后,DataNode节点没有挂载上2021-11-19 10:59:09

    排错过程 安装Impala后,删除掉Impala依赖的Hadoop、Hive等框架后,还是启动自己之前部署的Hadoop、Hive,没有报错,但是通过WEb界面查看,发现集群处于安全模式,然后所有的DataNode节点都没有挂载上(这时候没有注意到DataNode节点没有挂载上)。。。 Security is off. Safe mode is ON. T

  • code space memory overlap错误2021-11-18 09:33:23

    把原本的51程序加上RTX系统代码 编译提示CODE SPACE MEMORY OVERLAP 发现是RTX使用了Timer0做系统的时基,占用了中断入口 而原来的程序是Timer0提供心跳,也用到了中断入口,导致冲突。 把原来的程序使用Timer0的中断入口删掉就可以了。 这只是一种情况,其他的冲突根据实际分析。

  • leetcode 326 矩阵中的最长递增路径2021-11-15 22:34:18

    深度优先搜索,思路不难,其中重要的是记忆化搜索,就是搜索的时候记录以当前节点为起点的最长路径的长度。贴代码 1 class Solution { 2 public: 3 int res = 0; 4 int m; 5 int n; 6 int longestIncreasingPath(vector<vector<int>>& matrix) 7 { 8

  • 在abap中(Clear,Free, Refesh)的用法2021-11-15 09:58:54

    文章目录 1. Introduction2.Usage2.1 Clear2.2 Refresh2.3 Free 3 Summarry 1. Introduction The statements CLEAR, REFRESH, and FREE initialize data objects, that is, they set the content of a data object to an initial value. 2.Usage 2.1 Clear Syntax CLE

  • prometheus-04 Prometheus使用案例2021-11-14 20:00:23

    目录Prometheus使用案例1.计算CPU的使用率2.CPU饱和度3.内存使用率4.内存饱和度5.磁盘使用率6.服务状态7.源数据及UP指标1. UP指标2.metadata指标3.向量匹配3.1一对一匹配3.2 多对一和一对多皮皮额8.查询的持久化1.记录规则2.配置记录规则2.1添加记录规则 Prometheus使用案例 1.计

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有