Stella981 Stella981
2年前
Android low memory killer 机制
Android中,进程的生命周期都是由系统控制的。即使用户在界面上关掉一个应用,切换到了别的应用,那个应用的进程依然是存在于内存之中的。这样设计的目的是为了下次启动应用能更加快速。当然,随着系统运行时间的增长,内存中的进程可能会越来越多,而可用的内存则将会越来越少。AndroidKernel会定时执行一次检查,杀死一些进程,释放掉内存。那么,如何来判断
Stella981 Stella981
2年前
Redis内存碎片优化参数
infomemory参数简介used\_memory\_human:262.89Mused\_memory\_rss:267489280mem\_fragmentation\_ratio:0.97(Redis在编译时便会指定内存分配器;内存分配器可以是libc、jemalloc或者tcmalloc,默认是jemalloc。)used\
Stella981 Stella981
2年前
Native memory allocation (mmap) failed to map xxx bytes for committing reserved memory
<divid"content\_views"class"markdown\_views"<!flowchart箭头图标勿删<svgxmlns"http://www.w3.org/2000/svg"style"display:none;"<pathstrokelinecap"round"d"M5,00,
Stella981 Stella981
2年前
Kernel Memory Allocation
http://kernelnewbies.org/KernelMemoryAllocationKernelMemoryAllocationbyArnoutVandecappelle,MindInthekernel,malloc()isnotavailable.Instead,thekernelhastod
Stella981 Stella981
2年前
Redis内存碎片率
一、内存碎片率mem\_fragmentation\_ratioused\_memory\_rss/used\_memoryused\_memory:Redis使用其分配器分配的内存大小used\_memory\_rss:操作系统分配给Redis实例的内存大小,表示该进程所占物理内存的大小两者包括了实际缓存占用的内存和
Stella981 Stella981
2年前
PHP csv文件30w+数据导入mysql数据库
<?phpclassAdd{publicfunctiondata(){ini_set('memory_limit','1');//PHP内存设置$handlefopen("201501.csv","r");
Stella981 Stella981
2年前
Android memory leaks(摘抄)
至少在TMobileG1上Android应用在堆上分配的内存大小被限制16MB以内。对于手机来说,这是个不小的内存,但是这仍然远远不能满足一些开发者的需求。但是,即使你不打算使用所有的内存空间,你也应该尽可能地少用内存,从而使得其他应用能够运行而不是被杀掉。因为Android能够在内存中保持的应用越多,那么用户切换应用的速度就会越快。作为我工作的一部分,
Stella981 Stella981
2年前
SQLite 文件使用 Memory 模式
SQLiteConnectionsourcenewSQLiteConnection("DataSourcec:\\test.db");source.Open();using(SQLiteConnectiondestinationnewSQLiteConnection("DataSource:
Stella981 Stella981
2年前
SmartSql 介绍
SmartSql介绍SmartSqlMyBatisCache(Memory|Redis)R/WSplittingDynamicRepositoryDiagnostics......她是如何工作的?SmartSql借鉴了MyBatis的思想,使用XML来管理SQL,并且
Easter79 Easter79
2年前
SQLite 文件使用 Memory 模式
SQLiteConnectionsourcenewSQLiteConnection("DataSourcec:\\test.db");source.Open();using(SQLiteConnectiondestinationnewSQLiteConnection("DataSource: