Intellij IDEA调整栈内存空间大小详细教程,添加参数-Xss....

测试添加参数的效果代码:

java 复制代码
package org.example;

public class Demo1 {
    static int count = 0;
    public static void main (String[] args) throws InterruptedException{
        //为什么不写String[] args就不出现运行的标识呢?
        method1();
        try{
            method();
        }
        catch (Error e){//这个是Error 用Exception无法捕捉
            System.out.println(e);
            System.out.println(count);
        }

    }

    private static void method() {
        count ++;
        method();
//        System.out.println(count);
    }


    private static void method1() {
        method2(1,2);
    }

    private static int method2(int a, int b) {
        int c = a + b;
        return c;
    }
}

添加方式如图,参数格式类似:-Xss1024k

相关推荐
折哥的程序人生 · 物流技术专研4 小时前
第4篇:Lambda 简化策略模式(Java 8+)
java·设计模式·策略模式·函数式编程·lambda·代码简化·扩充系列
researcher-Jiang4 小时前
高性能计算之OpenMP——超算习堂学习1
android·java·学习
烽火聊员6 小时前
查看Android Studio错误日志
android·ide·android studio
西门吹-禅6 小时前
java springboot N+1问题
java·开发语言·spring boot
DLYSB_6 小时前
生命通道:如何用 HIS 医疗系统直连网络声光终端,打造“零延误”的危急值响应网关?
java·网络·数据库·报警灯
weixin_BYSJ19877 小时前
SpringBoot + MySQL 乒乓球运动员信息管理系统项目实战--附源码04954
java·javascript·spring boot·python·django·flask·php
AI小码7 小时前
LLM 应用的缓存工程:当每次 API 调用都在燃烧成本
java·人工智能·spring·计算机·llm·编程·api
德福危险7 小时前
富有想象力的XSS盲打:靶机练习之Tempus_fugit5
服务器·网络·xss
Hui Baby7 小时前
Spring Security
java·后端·spring
IT笔记8 小时前
【Rust】Rust Match 模式匹配详解
java·开发语言·rust