Android为不同类型的进程分配了不同的内存使用上限,如果应用进程使用的内存超过了这个上限,则会被系统视为内存泄漏,从而被kill掉。Android为应用进程分配的内存上限如下所示:位置: /ANDROID_SOURCE/system/core/rootdir/init.rc 部分脚本# Defi...
分类:
移动开发 时间:
2014-07-24 10:13:13
阅读次数:
306
微软近期Open的职位:Job posting title: Senior Software Development EngineerLocation: China, BeijingDivision: Operations System Group Engineering Group Overvie...
Administration of the labyrinth has decided to start a new season with new wallpapers. For this purpose they need a program to calculate the surface area of the walls inside the labyrinth. This job
...
分类:
其他好文 时间:
2014-07-23 22:32:07
阅读次数:
292
Problem A: Tower of Cubes
In this problem you are given N colorful cubes each having a distinct weight. Each face of a cube is colored with one color. Your job is to build a tower using th...
分类:
其他好文 时间:
2014-07-23 17:07:51
阅读次数:
251
1、使用逻辑操作符号问题:查询工资高于500或者是岗位为manager的雇员,同时还要满足他们的姓名首字母为大写的J?select * from emp where (sal > 500 or job = 'MANAGER') and ename like 'J%'; ...
分类:
数据库 时间:
2014-07-23 16:52:01
阅读次数:
367
微软近期Open的职位:Job posting title: Senior Software Development EngineerLocation: China, BeijingDivision: Operations System Group Engineering Group Overvie...
分类:
其他好文 时间:
2014-07-23 15:12:56
阅读次数:
204
概述一个Spark的Job分为多个stage,最后一个stage会包含一个或多个ResultTask,前面的stages会包含一个或多个ShuffleMapTasks。ResultTask运行并将结果返回给driver application。ShuffleMapTask将task的output依据...
分类:
其他好文 时间:
2014-07-23 12:43:36
阅读次数:
376
出错的原因是adb的port被其它程序的进程占据了,所以要做的就是找到并kill该进程。步骤:、1、在cmd中运行adb nodaemon server,查看adb的port号是多少,普通情况下是5037(why?我也不太懂,或许软件使用的port号是固定的)2、再运行netstat -ano | ...
分类:
数据库 时间:
2014-07-22 22:48:32
阅读次数:
248
mysql-uroot-e"showprocesslist"|grep-i"Locked">>locklist.txt;
forlineinawk‘{print$1}‘locklist.txt
do
echo"kill$line;">>lock_kill.sql
done查看mysql数据库表大小#!/bin/bash
database=cms
user=root
password=‘123456‘
mysql-u${user}-p${password}-e"use$d..
分类:
数据库 时间:
2014-07-22 18:15:42
阅读次数:
334
今天打开开发网站突然不能使用,发现时Mysql数据库down掉了,就去重启:
mysql.server restart
一直会报错:“Manager of pid-file quit without updating file”。
然后就去找原因,网上说有以下三个方面的问题:
1、硬盘不够用了,无法写入pid文件
2、进程卡死了,找到mysql进程kill掉,然后重启
3、目录权限...
分类:
数据库 时间:
2014-07-22 17:53:52
阅读次数:
274