GithubHelp home page GithubHelp logo

lamar8 / oracle_onekey_active Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrmineduce21/oracle_onekey_active

0.0 0.0 0.0 95 KB

为了应对甲骨文最新回收机制而作的垃圾脚本

Shell 100.00%

oracle_onekey_active's Introduction

Oracle_OneKey_Active

为了应对甲骨文最新回收机制而作的垃圾脚本

说在前面: 由于甲骨文目前对不活跃机器实行回收,本脚本的作用就是 通过下载文件,上传,cpu跑分让甲骨文以为你是"活跃用户" 脚本仅做辅助,无法保证不被删机

转载请标明原出处

以下三个脚本都是执行后 在后台静默运行,脚本不会开机自启动,请重启后手动运行脚本

----======================== 更 新 内 容 ============================----

更新全自动 吃掉CPU 更新全自动 吃掉内存

使用前请删除旧版文件

cd /root && rm Fuck_OCPU.sh

----============================ C P U ===============================----

OneKeyFuck_OCPU.sh

一键吃掉CPU(可精准控制)【OracleLinux不可用】

cd /root && wget -qO OneKeyFuck_OCPU.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/OneKeyFuck_OCPU.sh && chmod +x OneKeyFuck_OCPU.sh && bash OneKeyFuck_OCPU.sh

释放CPU资源

pid=$(ps -ef | grep "bash" | grep '/bin/bash' | grep -v grep | awk '{print $2}') && kill -9 $pid

当ssh终端出现 nohup: appending output to 'nohup.out' 时按回车即可

============================================================

cpu_usage.sh(无法做到精确控制占用)

使用之前使用命令先查询下cpu的个数

cat /proc/cpuinfo | grep “processor”|wc -l

或 grep processor /proc/cpuinfo |wc -l

一键吃掉1核心

cd /root && wget -qO cpu_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/cpu_usage.sh && chmod +x cpu_usage.sh && bash cpu_usage.sh consume 1

取消CPU消耗

cd /root && wget -qO cpu_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/cpu_usage.sh && chmod +x cpu_usage.sh && bash cpu_usage.sh release

需要构造消耗2颗cpu的资源运行脚本sh cpu_usage.sh consume 2,此时运行top命令查看cpu的使用率。如果要释放cpu资源 运行sh cpu_usage.sh release即可释放cpu资源。

----=================== M e m o r y =========================----

OneKey_FuckMemory.sh 脚本将自动判断内存占用是否到达10%
如果没到达则占用内存至15%

真--一键吃内存

cd /root && wget -qO OneKey_FuckMemory.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/OneKey_FuckMemory.sh && chmod +x OneKey_FuckMemory.sh && bash OneKey_FuckMemory.sh

取消内存消耗(释放内存)

cd /root && wget -qO memory_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/memory_usage.sh && chmod +x memory_usage.sh && bash memory_usage.sh release

============================================================

memory_usage.sh 使用方法: 需要root 权限 启动

bash memory_usage.sh consume 内存大小

eg : bash memory_usage.sh consume 1G 即消耗1G 的内存

一键吃内存(100MB)

cd /root && wget -qO memory_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/memory_usage.sh && chmod +x memory_usage.sh && bash memory_usage.sh consume 100M

一键吃内存(2G)

cd /root && wget -qO memory_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/memory_usage.sh && chmod +x memory_usage.sh && bash memory_usage.sh consume 2G

一键吃内存(20G)[适用于24G内存]

cd /root && wget -qO memory_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/memory_usage.sh && chmod +x memory_usage.sh && bash memory_usage.sh consume 20G

取消内存消耗

cd /root && wget -qO memory_usage.sh https://raw.githubusercontent.com/Mrmineduce21/Oracle_OneKey_Active/main/memory_usage.sh && chmod +x memory_usage.sh && bash memory_usage.sh release

oracle_onekey_active's People

Contributors

mrmineduce21 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.