小编Sam*_*Sam的帖子

weblogic服务器11g的内存不足问题

我正在使用安装了JRockit的weblogic 10.3.6.我使用的是64位系统,Linux作为操作系统.我安装了一个adf应用程序.只有几个用户使用该应用程序.但是安装了WLS的服务器机器每周都会停机,造成内存不足.所以我们每周都要重启它.当我查看时,我发现通过调整堆大小和其他内存参数可以使WebLogic更稳定.

示例: - Xms256m --Xmx512m MaxPermsize为128m

我的问题是

  1. 这些论点是什么?

  2. 这些论点如何相互关联?

  3. 如何确定这些参数的值?

  4. 什么可能是内存不足问题的其他原因?

谢谢,

拉克什

linux weblogic weblogic11g oracle-adf

3
推荐指数
1
解决办法
2万
查看次数

从列表列表中删除空列表

我有一个列表列表,其中一些是NA例如empty lists.我想提取所有填充数据的列表并删除所有列表empty(NA).

我正在尝试的代码是:

lapply(outputfile,function(x){
  if(outputfile != NA){
  test<-lapply(outputfile,unlist)
}})
Run Code Online (Sandbox Code Playgroud)

但这不起作用.

列表列表如下:(随机数据的小例子)

list(NA, NA, NA, NA, NA, NA, list(c(5, 5, 5, 5, 5, 5, 5, 5, 5, 
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
5, 5, 5, 5, 5, 5, …
Run Code Online (Sandbox Code Playgroud)

r list

3
推荐指数
1
解决办法
2106
查看次数

Spring boot:Spring data jpa + Mariadb

我创建了一个 Spring Boot 应用程序来连接到 MariaDB。

当我使用 Spring Boot 时,该配置有效,1.5.6.Release但不适用于2.1.0.Release

配置如下:

spring.datasource.url=jdbc:mariadb://localhost:3306/db
spring.datasource.username=root spring.datasource.password=password
spring.jpa.hibernate.ddl-auto=none
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
Run Code Online (Sandbox Code Playgroud)

POM.XML信息:

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.1.0.RELEASE</version>
        <relativePath /> <!-- lookup parent from repository -->
    </parent>
<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.mariadb.jdbc</groupId>
            <artifactId>mariadb-java-client</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-test</artifactId>
            <scope>test</scope>
        </dependency>
Run Code Online (Sandbox Code Playgroud)

下面是异常的堆栈跟踪

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating …
Run Code Online (Sandbox Code Playgroud)

spring hibernate mariadb spring-data-jpa spring-boot

3
推荐指数
1
解决办法
2万
查看次数

如何在包体中运行过程

我正在使用oracle 11g.我试图使用该命令在包内运行一个过程

execute package.procedure 
Run Code Online (Sandbox Code Playgroud)

但我一直得到例外

ERROR at line 1:
ORA-06550: line 1, column 12:
PLS-00302: component 'package' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Run Code Online (Sandbox Code Playgroud)

我创建的包和包体如下.我在这里尝试做的是创建一个包,用于每次执行时创建表.所以我写了下面的脚本.

- - -包

create or replace package pack1 as
end pack1 ;
/
Run Code Online (Sandbox Code Playgroud)

------包体

create or replace package body pack1 as
procedure proc1
is 
begin
execute immediate 'create table bcd(bc date)';
end ;
procedure proc2
is 
begin
execute immediate 'create table bcde(bc number(12,0)) as select country_id from      countries';
end ;
end …
Run Code Online (Sandbox Code Playgroud)

oracle procedure package

2
推荐指数
1
解决办法
3万
查看次数