当前位置: 首页 > news >正文

博物馆网站制作wordpress短链接清除

博物馆网站制作,wordpress短链接清除,建设集约化网站的进展情况,搜索引擎优化实训Android Car WatchDog I/O监控服务 背景#xff1a; 某基于Android 13的车载系统。 某天长时间测试一款3方#xff08;非SystemApp#xff09;时#xff0c;该款应用偶发闪退现象。 通过日志分析#xff0c;发现应用被系统的 Car WatchDog#xff08;喂狗服务#xff…Android Car WatchDog I/O监控服务 背景 某基于Android 13的车载系统。 某天长时间测试一款3方非SystemApp时该款应用偶发闪退现象。 通过日志分析发现应用被系统的 Car WatchDog喂狗服务Disable掉了。 日志如下 Disabled package *** on user*** until used due to resource overuse对应的代码部分。 /packages/services/Car/service/src/com/android/car/watchdog/WatchdogPerfHandler.java /** Disables a package for specific user until used. */ public boolean disablePackageForUser(String packageName, UserIdInt int userId) {try {int currentEnabledState PackageManagerHelper.getApplicationEnabledSettingForUser(packageName, userId);switch (currentEnabledState) {case COMPONENT_ENABLED_STATE_DISABLED:case COMPONENT_ENABLED_STATE_DISABLED_USER:case COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED:Slogf.w(TAG, Unable to disable application for user %d, package %s as the current enabled state is %s, userId, packageName,toEnabledStateString(currentEnabledState));return false;}PackageManagerHelper.setApplicationEnabledSettingForUser(packageName,COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED, /* flags */ 0, userId,mContext.getPackageName());appendToDisabledPackagesSettingsString(packageName, userId);Slogf.i(TAG, Disabled package %s on user %d until used due to resource overuse,packageName, userId);} catch (Exception e) {Slogf.e(TAG, e, Failed to disable application for user %d, package %s, userId,packageName);return false;}return true; }问题分析 Car WatchDog中的IO Monitor会监监控所有应用或服务的磁盘I/O用量。以保证系统的稳定。主要包括 应用的磁盘I/O写入量。应用的System-wide I/O写入量宽带) 当应用或服务超过预定义的阈值时Car WatchDog会对相应的应用或者服务执行相应操作比如 kill掉 系统服务或应用不受限制可以通过配置文件指定哪些系统服务或应用受到监控三方应用监控被进行限制。 设定的阈值统计范围时一天内。 Car WatchDog中的IO Monitor会统计一天内的I/O使用情况。 上述问题分析 回到上面说的问题。某一款三方应用偶尔退出并且系统中存在下述日志。 Disabled package *** on user*** until used due to resource overuse该日志说明这款应用因为I/O使用超过阈值被系统Kill。 后续通过复现抓取IO相应日志发现出现问题时该应用在一天内的写入量超过3GB这个值已经超过系统的阈值配置。 阈值配置文件 /packages/services/Car/cpp/watchdog/server/data/third_party_resource_overuse_configuration.xml ?xml version1.0 encodingutf-8? !-- Copyright (C) 2021 The Android Open Source ProjectLicensed under the Apache License, Version 2.0 (the License);you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an AS IS BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License. --resourceOveruseConfiguration version1.0componentType THIRD_PARTY /componentTypeioOveruseConfiguration!-- Default thresholds in MiB for all third-party packages that dont have app categoryspecific thresholds. --componentLevelThresholdsstate idforeground_mode 3072 /statestate idbackground_mode 2048 /statestate idgarage_mode 4096 /state/componentLevelThresholds/ioOveruseConfiguration /resourceOveruseConfiguration修改 去掉该三方引用的无用I/O操作。后续测试无偶先问题。 关于Android源码部分的实现可以感兴趣的可以阅读如下源文件。 packages/services/Car/cpp/watchdog/server/src/IoOveruseMonitor.cpp
http://www.hkea.cn/news/14564204/

相关文章:

  • 软件开发软件开发网站个人网站网站服务器
  • 广西建设厅网站首页wordpress公司模板
  • 打电话沟通做网站论坛类网站如何备案
  • 正规微商平台公司官网优化方案
  • 石河子建设局网站制作网站监控推荐
  • 更换网站备案美工网站模板
  • 导航网站容易做吗中国企业500强门槛
  • wordpress搬家后文章专业黑帽seo
  • 广元建设局网站wordpress 学习
  • 如何查看一个网站做的外链交互设计师
  • 彩票网站制作找谁seo快速排名利器
  • 网站短链接怎么做的中国百科网vip钓鱼网站开发
  • 网站建设diy网站首页不在第一位
  • 湖南众诚建设 官方网站建设工程服务中心是做什么的
  • 湖州建设网站制作吴忠网页设计
  • 定制网站建设官网网站运营方案模板
  • 怎么建设个人网站 新手学做网站德国红点设计奖官网
  • 成都营销网站建设团队哪有做网站的公司
  • 做网站需要资质怎么做网站的浏览量
  • 申请域名后怎样建设网站怎么做淘宝客网站
  • 网站建设风格有哪些德尔普的网站建设的价格
  • 做网站赚钱吗.red域名做网站好不好
  • 厦门营销网站建设桂林市风尚网络科技有限公司
  • 四川短视频seo优化网站河南建筑材料价格信息网
  • saas建站平台介绍郑州有名的做网页的公司
  • 网站设计厂推荐门户网站建设公司
  • 海南省建设执业中心网站网站建设_网站设计_app制作
  • 免费做计算机题的网站手机麻将软件定制开发
  • 乡土文化网站怎么做戴尔网站建设和维护
  • 公司网站内容更新该怎么做肥城网站建设哪家好