JP2011048590A - Image forming device - Google Patents

Image forming device Download PDF

Info

Publication number
JP2011048590A
JP2011048590A JP2009195981A JP2009195981A JP2011048590A JP 2011048590 A JP2011048590 A JP 2011048590A JP 2009195981 A JP2009195981 A JP 2009195981A JP 2009195981 A JP2009195981 A JP 2009195981A JP 2011048590 A JP2011048590 A JP 2011048590A
Authority
JP
Japan
Prior art keywords
size
area
application
heap
java
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009195981A
Other languages
Japanese (ja)
Other versions
JP5446602B2 (en
Inventor
Ryoji Yamamoto
良二 山本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2009195981A priority Critical patent/JP5446602B2/en
Publication of JP2011048590A publication Critical patent/JP2011048590A/en
Application granted granted Critical
Publication of JP5446602B2 publication Critical patent/JP5446602B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Memory System (AREA)
  • Facsimiles In General (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image forming device that maintains effectiveness of a memory and suppresses an influence of GC on the performance of equipment. <P>SOLUTION: When a factor of changing the size of a heap region 303 such as an insufficient memory error or addition/deletion of Java (R) application is detected, the size of the heap region 303 can be changed to secure a proper heap region 303 according to a condition of a multi-function machine in a Java (R) operation environment. Effectiveness of the memory can be maintained and an influence of GC on the performance of the multi-function machine can be suppressed. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、画像形成装置に関する。   The present invention relates to an image forming apparatus.

Java(登録商標)を搭載したシステムでは、メモリ管理が2重管理となっている。一つは、OS(Operating System)によるメモリ管理である。OSによるメモリ管理は、大きなプログラムに対して、使用頻度の高いもののみ実メモリに置き、使用頻度の低いものをスワップ処理によりHDD(Hard Disk Drive)などの補助記憶装置に退避させて、メモリを有効に利用している。したがって、OSによるメモリ管理によれば、見かけ上、メモリが足りなくなることがない。   In a system equipped with Java (registered trademark), memory management is double management. One is memory management by an OS (Operating System). For memory management by the OS, only frequently used programs are placed in real memory for large programs, and those that are used infrequently are saved in an auxiliary storage device such as an HDD (Hard Disk Drive) by swap processing. We use effectively. Therefore, according to the memory management by the OS, there is no apparent memory shortage.

もう一つは、そのOS上にあるJava(登録商標)によるメモリ管理である。Java(登録商標)によるメモリ管理は、Java(登録商標)プログラムを実行するための利用空間であるヒープ領域において、プログラムの実行に使用しなくなった領域やプログラムの実行に使用されている領域の隙間の領域を回収して、他のプログラムが使用可能な領域を増やすといったガーベージコレクション(以下、GCとする)という管理機構でメモリを有効に利用している(特許文献1参照)。   The other is memory management by Java (registered trademark) on the OS. In memory management by Java (registered trademark), in the heap area, which is a use space for executing a Java (registered trademark) program, an area that is no longer used for program execution or a gap between areas used for program execution The memory is effectively used by a management mechanism called garbage collection (hereinafter referred to as GC) that collects these areas and increases the areas that can be used by other programs (refer to Patent Document 1).

ところで、GCによるメモリ管理では、ヒープ領域において、プログラムを実行するための領域が無い場合、メモリが枯渇して“Out Of Memory”というエラーが発生する。パーソナルコンピュータなど、メモリが豊富にある機器においては、Java(登録商標)プログラムを実行するためのヒープ領域を大きく確保することができるが、画像形成装置などの組み込み機器においては、Java(登録商標)プログラムを実行するためのメモリ資源が限られているため、Java(登録商標)動作環境において複数のJava(登録商標)プログラムを起動させた場合、メモリが足りなくなりエラーが発生し、Java(登録商標)プログラムを利用することができない、という課題がある。   By the way, in the memory management by GC, when there is no area for executing a program in the heap area, the memory is exhausted and an error “Out Of Memory” occurs. In a device with abundant memory such as a personal computer, a large heap area for executing a Java (registered trademark) program can be secured. In an embedded device such as an image forming apparatus, a Java (registered trademark) is available. Since memory resources for executing the program are limited, when a plurality of Java (registered trademark) programs are started in a Java (registered trademark) operating environment, an error occurs due to insufficient memory, and the Java (registered trademark) ) There is a problem that the program cannot be used.

また、Java(登録商標)動作環境において複数のJava(登録商標)プログラムを起動するために、ヒープ領域を大きくする方法もあるが、ヒープ領域を大きくすればするほど、GCに要する処理時間が長くなり、機器の性能に影響を与える、という課題がある。   In addition, there is a method of increasing the heap area in order to start a plurality of Java (registered trademark) programs in the Java (registered trademark) operating environment. However, the larger the heap area, the longer the processing time required for GC. Thus, there is a problem of affecting the performance of the device.

さらに、メモリを増設するなど、組み込み機器の構成により、Java(登録商標)プログラムの実行に最適なサイズにヒープ領域を増減する方法もあるが、Java(登録商標)プログラムが実行中はヒープ領域のサイズを変更することができない、という課題がある。   Furthermore, there is a method to increase / decrease the heap area to an optimum size for execution of the Java (registered trademark) program depending on the configuration of the embedded device, such as adding memory. However, while the Java (registered trademark) program is running, There is a problem that the size cannot be changed.

本発明は、上記に鑑みてなされたものであって、メモリの有効性の維持およびGCによる機器の性能への影響を抑えることができる画像形成装置を提供することを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to provide an image forming apparatus capable of maintaining the effectiveness of a memory and suppressing the influence of GC on the performance of a device.

上述した課題を解決し、目的を達成するために、本発明は、記憶媒体が有するメモリ領域のうち、アプリケーションの実行に使用するヒープ領域のサイズの変更要因の発生を検出する検出手段と、前記検出手段により前記変更要因の発生が検出された場合に、前記メモリ領域における前記ヒープ領域のサイズを変更する変更手段と、を備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides a detection unit that detects occurrence of a change factor of a size of a heap area used for execution of an application among memory areas of a storage medium, And changing means for changing the size of the heap area in the memory area when occurrence of the change factor is detected by the detecting means.

本発明によれば、Java(登録商標)動作環境において、組み込み機器の状態に応じて適切にヒープ領域を確保することができるので、メモリの有効性の維持およびGCによる機器の性能への影響を抑えることができる、という効果を奏する。   According to the present invention, in the Java (registered trademark) operating environment, the heap area can be appropriately secured according to the state of the embedded device, so that it is possible to maintain the effectiveness of the memory and to influence the device performance by the GC. There is an effect that it can be suppressed.

図1は、本実施の形態にかかる複合機のハードウェア構成を示すブロック図である。FIG. 1 is a block diagram illustrating a hardware configuration of the multifunction peripheral according to the present embodiment. 図2は、コントローラ部で実行されるソフトウェアプログラムの構成を示す機能ブロック図である。FIG. 2 is a functional block diagram showing the configuration of the software program executed by the controller unit. 図3は、ソフトウェアプログラムの各プログラムに割り当てられるRAM内のメモリ領域の配置を示す図である。FIG. 3 is a diagram showing an arrangement of memory areas in the RAM allocated to each program of the software program. 図4は、ヒープ領域内の状態を示す図である。FIG. 4 is a diagram illustrating a state in the heap area. 図5は、本実施の形態にかかる複合機が備える特長的な機能構成を示すブロック図である。FIG. 5 is a block diagram showing a characteristic functional configuration provided in the multifunction peripheral according to the present embodiment. 図6は、ヒープ領域のサイズを大きくした後のRAM内のメモリ領域の配置を示す図である。FIG. 6 is a diagram showing the arrangement of the memory areas in the RAM after increasing the size of the heap area. 図7は、ヒープ領域のサイズの変更による複合機の性能面への影響を説明するための図である。FIG. 7 is a diagram for explaining the influence on the performance of the multifunction device due to the change in the size of the heap area. 図8は、RAMのメモリ領域を増設した場合のRAM内のメモリ領域の配置を示す図である。FIG. 8 is a diagram showing the arrangement of the memory areas in the RAM when the RAM area is expanded. 図9は、ヒープ領域のサイズの算出に用いるアプリケーション定義ファイルを示す図である。FIG. 9 is a diagram illustrating an application definition file used for calculating the size of the heap area. 図10は、Java(登録商標)アプリケーションの追加または削除が発生した場合のヒープ領域のサイズの変更処理の流れを示すフローチャートである。FIG. 10 is a flowchart showing the flow of heap area size change processing when a Java (registered trademark) application is added or deleted. 図11は、メモリ不足エラーが発生した場合のヒープ領域のサイズの変更処理の流れを示すフローチャートである。FIG. 11 is a flowchart showing a flow of processing for changing the size of the heap area when a memory shortage error occurs.

以下に添付図面を参照して、この発明にかかる画像形成装置の最良な実施の形態を詳細に説明する。なお、本実施の形態では、本発明にかかる画像形成装置を、コピー(複写)やプリントが可能な複合機に適用した例について説明する。   Exemplary embodiments of an image forming apparatus according to the present invention will be explained below in detail with reference to the accompanying drawings. In the present embodiment, an example in which the image forming apparatus according to the present invention is applied to a multifunction peripheral capable of copying (copying) and printing will be described.

図1は、本実施の形態にかかる複合機のハードウェア構成を示すブロック図である。本実施の形態にかかる複合機1は、コントローラ部100、I/F群107、エンジン部108、操作部109、HDD(Hard Disk Drive)110などを備えている。エンジン部108は、電子写真を出力するためのプリンタなどのエンジンを制御するものである。操作部109は、タッチパネルやハードキーを備え、ユーザインターフェースとして機能するものである。HDD110は、各種のソフトウェアプログラム等を格納するものである。I/F群107は、コントローラ部100とHDD110を接続するものであって、例えば、USB(Universal Serial Bus)、ネットワーク、S−ATA(Serial Advanced Technology Attachment)などである。   FIG. 1 is a block diagram illustrating a hardware configuration of the multifunction peripheral according to the present embodiment. The multifunction device 1 according to the present embodiment includes a controller unit 100, an I / F group 107, an engine unit 108, an operation unit 109, an HDD (Hard Disk Drive) 110, and the like. The engine unit 108 controls an engine such as a printer for outputting an electrophotographic image. The operation unit 109 includes a touch panel and hard keys and functions as a user interface. The HDD 110 stores various software programs and the like. The I / F group 107 connects the controller unit 100 and the HDD 110, and is, for example, a USB (Universal Serial Bus), a network, an S-ATA (Serial Advanced Technology Attachment), or the like.

コントローラ部100は、ソフトウェアプログラムが実行されるマザーボードであり、チップセット(Chipset)102を介して、CPU(Central Processing Unit)101、RAM(Random Access Memory)103、ROM(Read Only Memory)104、ASIC(Application Specific Integrated Circuit) A105、ASIC B106が接続されている。   The controller unit 100 is a motherboard on which a software program is executed, and via a chipset 102, a CPU (Central Processing Unit) 101, a RAM (Random Access Memory) 103, a ROM (Read Only Memory) 104, an ASIC (Application Specific Integrated Circuit) A105 and ASIC B106 are connected.

ROM104は、OS(Operating System)などを記憶した読み出し専用のメモリである。CPU101は、コントローラ部100の主要部であって、HDD110およびROM104に記憶したソフトウェアプログラム200(図2参照)を実行することにより各部を集中的に制御するものである。RAM103は、CPU101がソフトウェアプログラム200(図2参照)を実行するためのメモリ領域を有する記憶媒体である。ASIC A105およびASIC B106は、それぞれエンジン部108および操作部109との通信制御を行うものである。   The ROM 104 is a read-only memory that stores an OS (Operating System) and the like. The CPU 101 is a main part of the controller unit 100, and centrally controls each unit by executing a software program 200 (see FIG. 2) stored in the HDD 110 and the ROM 104. The RAM 103 is a storage medium having a memory area for the CPU 101 to execute the software program 200 (see FIG. 2). ASIC A 105 and ASIC B 106 perform communication control with the engine unit 108 and the operation unit 109, respectively.

図2は、コントローラ部で実行されるソフトウェアプログラムの構成を示す機能ブロック図である。コントローラ部100(CPU101)で実行されるソフトウェアプログラム200には、複合機1が有する複数の機能を実現するため、マルチタスク系のUNIX(登録商標)ベースのOS201が含まれている。本実施の形態にかかる複合機1には、このOS201によりJVM(Java(登録商標) Virtual Machine)202が組み込まれている。JVM202上には、後述するJava(登録商標)アプリケーションA204、Java(登録商標)アプリケーションB205、Java(登録商標)アプリケーションC206を起動するJava(登録商標)制御処理プログラム203が存在する。なお、Java(登録商標)制御処理プログラム203は、マルチVMと呼ばれ、JVM202に含まれるケースもある。   FIG. 2 is a functional block diagram showing the configuration of the software program executed by the controller unit. The software program 200 executed by the controller unit 100 (CPU 101) includes a multitasking UNIX (registered trademark) -based OS 201 in order to realize a plurality of functions of the multifunction device 1. The MFP 1 according to the present embodiment incorporates a JVM (Java (registered trademark) Virtual Machine) 202 by the OS 201. A Java (registered trademark) control processing program 203 that activates a Java (registered trademark) application A 204, a Java (registered trademark) application B 205, and a Java (registered trademark) application C 206, which will be described later, exists on the JVM 202. Note that the Java (registered trademark) control processing program 203 is called a multi-VM and may be included in the JVM 202.

Java(登録商標)アプリケーション210(Java(登録商標)アプリケーションA204、Java(登録商標)アプリケーションB205、およびJava(登録商標)アプリケーションC206)は、JVM202上において、マルチスレッドにより複数の処理を並行して行うマルチ動作を実現している。このマルチ動作は、JVM202により管理されているものとする。また、Java(登録商標)アプリケーション210は、ソフトウェアプログラム200の機能を拡張または縮小するために、追加または削除が実施されるプラグインである。   A Java (registered trademark) application 210 (Java (registered trademark) application A 204, Java (registered trademark) application B 205, and Java (registered trademark) application C 206) performs a plurality of processes in parallel on the JVM 202 by multithreading. Multi operation is realized. This multi-operation is assumed to be managed by the JVM 202. Further, the Java (registered trademark) application 210 is a plug-in that is added or deleted in order to expand or reduce the function of the software program 200.

さらに、本実施の形態にかかる複合機1は、JVM202以外にも、ハードウェアを制御したり、複合機1のリソースを制御・管理したりするためのネイティブ制御処理プログラム207が組み込まれている。ネイティブ制御処理プログラム207には、ネットワークとの通信を制御するネットワーク制御プログラムや画像データに画像処理を行う画像データ処理プログラムなどが含まれている。また、ネイティブ制御処理プログラム207には、本実施の形態にかかる複合機1が備える特長的な機能を実現するヒープメモリ管理コントローラ208が含まれている。なお、ネイティブ制御処理プログラム207およびJava(登録商標)動作環境211(JVM202、Java(登録商標)制御処理プログラム203、Java(登録商標)アプリケーション210)は、OS201からみて、マルチタスクにより複数の処理を並行して行うマルチ動作を実現している。   In addition to the JVM 202, the MFP 1 according to the present embodiment incorporates a native control processing program 207 for controlling hardware and controlling / managing resources of the MFP 1. The native control processing program 207 includes a network control program that controls communication with a network, an image data processing program that performs image processing on image data, and the like. Further, the native control processing program 207 includes a heap memory management controller 208 that realizes a characteristic function provided in the multifunction machine 1 according to the present embodiment. Note that the native control processing program 207 and the Java (registered trademark) operating environment 211 (JVM 202, Java (registered trademark) control processing program 203, Java (registered trademark) application 210) perform a plurality of processes by multitasking as viewed from the OS 201. Multi-operations performed in parallel are realized.

ここで、図3を用いて、CPU101により実行されるソフトウェアプログラム200の各プログラムに割り当てられるRAM103内のメモリ領域の配置について説明する。図3は、ソフトウェアプログラムの各プログラムに割り当てられるRAM内のメモリ領域の配置を示す図である。   Here, the arrangement of the memory areas in the RAM 103 allocated to each program of the software program 200 executed by the CPU 101 will be described with reference to FIG. FIG. 3 is a diagram showing an arrangement of memory areas in the RAM allocated to each program of the software program.

RAM103内のメモリ領域は、ネイティブ制御処理プログラム207(画像データ処理プログラム)が画像処理を行う画像データを扱う画像処理用領域305、OS201を実行するためのOS制御領域301、ネイティブ制御処理プログラム207を実行するためのネイティブプログラム領域304、およびJava(登録商標)に関連するプログラム(Java(登録商標)動作環境211)を実行するためのJava(登録商標)動作領域302を有している。   The memory area in the RAM 103 includes an image processing area 305 that handles image data for which the native control processing program 207 (image data processing program) performs image processing, an OS control area 301 for executing the OS 201, and a native control processing program 207. It has a native program area 304 for execution and a Java (registered trademark) operation area 302 for executing a program (Java (registered trademark) operating environment 211) related to Java (registered trademark).

Java(登録商標)動作領域302は、Java(登録商標)アプリケーション210の実行に使用するヒープ領域303を有している。なお、ヒープ領域303は、JVM202の管轄で管理されるものとする。   The Java (registered trademark) operation area 302 has a heap area 303 used for executing the Java (registered trademark) application 210. It is assumed that the heap area 303 is managed under the jurisdiction of the JVM 202.

ここで、図4を用いて、ヒープ領域303内の状態について説明する。図4は、ヒープ領域内の状態を示す図である。Java(登録商標)アプリケーションA204、Java(登録商標)アプリケーションB205、およびJava(登録商標)アプリケーションC206がCPU101により実行された場合、Java(登録商標)動作領域302内のヒープ領域303には、Java(登録商標)アプリケーション領域A401、Java(登録商標)アプリケーション領域B402、およびJava(登録商標)アプリケーション領域C403が設けられる。なお、Java(登録商標)アプリケーション領域A401がJava(登録商標)アプリケーションA204に対応し、Java(登録商標)アプリケーション領域B402がJava(登録商標)アプリケーションB205に対応し、Java(登録商標)アプリケーション領域C403がJava(登録商標)アプリケーションC206に対応するものとする。   Here, the state in the heap area 303 will be described with reference to FIG. FIG. 4 is a diagram illustrating a state in the heap area. When the Java (registered trademark) application A 204, the Java (registered trademark) application B 205, and the Java (registered trademark) application C 206 are executed by the CPU 101, the Java (registered trademark) application area 302 in the Java (registered trademark) operation area 302 has Java ( (Registered trademark) application area A 401, Java (registered trademark) application area B 402, and Java (registered trademark) application area C 403 are provided. The Java (registered trademark) application area A401 corresponds to the Java (registered trademark) application A204, the Java (registered trademark) application area B402 corresponds to the Java (registered trademark) application B205, and the Java (registered trademark) application area C403. Corresponds to the Java (registered trademark) application C206.

Java(登録商標)動作領域302内のヒープ領域303には、Java(登録商標)アプリケーション領域A401、Java(登録商標)アプリケーション領域B402、およびJava(登録商標)アプリケーション領域C403のサイズは、図4に示すように、アプリケーションごとに異なる。また、図4に示すヒープ領域303内には、これ以上Java(登録商標)アプリケーション210を追加することができない。仮に、新たなJava(登録商標)アプリケーション210を追加した場合、JVM202が、ヒープ領域303の不足によるメモリ不足エラー(Out Of Memory)の発生を検知して、実行中のJava(登録商標)アプリケーション210が全て停止する。   In the heap area 303 in the Java (registered trademark) operation area 302, the sizes of the Java (registered trademark) application area A401, the Java (registered trademark) application area B402, and the Java (registered trademark) application area C403 are shown in FIG. As shown, it varies from application to application. Further, no more Java (registered trademark) application 210 can be added in the heap area 303 shown in FIG. If a new Java (registered trademark) application 210 is added, the JVM 202 detects the occurrence of a memory shortage error (Out Of Memory) due to a shortage of the heap area 303, and the Java (registered trademark) application 210 being executed is detected. All stop.

従来、JVM202によりメモリ不足エラーの発生が検知された場合、現在実行中のJava(登録商標)アプリケーションA204、Java(登録商標)アプリケーションB205、およびJava(登録商標)アプリケーションC206のいずれかを削除して、新たなJava(登録商標)アプリケーション210を追加しなければならなかった。若しくは、ガーベージコレクション(GC)により、新たなJava(登録商標)アプリケーション210が使用可能な領域を増やすことも可能なケースもある。これらは、ヒープ領域303のサイズが固定されている限り、回避することができない処理である。   Conventionally, when the occurrence of a memory shortage error is detected by the JVM 202, one of the currently executing Java (registered trademark) application A204, Java (registered trademark) application B205, and Java (registered trademark) application C206 is deleted. A new Java (registered trademark) application 210 had to be added. Alternatively, there may be a case where the area that can be used by the new Java (registered trademark) application 210 can be increased by garbage collection (GC). These are processes that cannot be avoided as long as the size of the heap area 303 is fixed.

そこで、本実施の形態では、ネイティブ制御処理プログラム207に含まれるヒープメモリ管理コントローラ208により実現されるヒープメモリ管理コントローラ部500(図5参照)により、ヒープ領域303のサイズを可変にし、複合機1の状態によってヒープ領域303のサイズを変更する。   Therefore, in this embodiment, the size of the heap area 303 is made variable by the heap memory management controller unit 500 (see FIG. 5) realized by the heap memory management controller 208 included in the native control processing program 207, so that the multifunction device 1 The size of the heap area 303 is changed depending on the state.

次に、図5を用いて、図2に示すソフトウェアプログラム200(ヒープメモリ管理コントローラ208)がCPU101に実行させる機能のうち、本実施の形態にかかる複合機1が備える特長的な機能について説明する。図5は、本実施の形態にかかる複合機が備える特長的な機能構成を示すブロック図である。   Next, among the functions that the software program 200 (heap memory management controller 208) illustrated in FIG. 2 causes the CPU 101 to execute, characteristic functions provided in the multifunction machine 1 according to the present embodiment will be described with reference to FIG. . FIG. 5 is a block diagram showing a characteristic functional configuration provided in the multifunction peripheral according to the present embodiment.

図5に示すように、複合機1は、ヒープサイズ管理制御部501、JVM起動・終了制御部502、Java(登録商標)アプリ・中断・再開・中止制御部503、動作環境の退避・復帰制御部504などを含むヒープメモリ管理コントローラ部500を備えている。なお、ヒープ領域303のサイズの変更は、実際上、Java(登録商標)動作環境211の変更そのものであるため、ヒープメモリ管理コントローラ部500は、JVM202自体を制御することになる。   As shown in FIG. 5, the multifunction device 1 includes a heap size management control unit 501, a JVM start / end control unit 502, a Java (registered trademark) application / suspend / resume / stop control unit 503, and an operating environment save / restore control. A heap memory management controller unit 500 including a unit 504 and the like. Note that since the change in the size of the heap area 303 is actually a change in the Java (registered trademark) operating environment 211 itself, the heap memory management controller unit 500 controls the JVM 202 itself.

JVM起動・終了制御部502は、JVM202の動作(起動および終了)を制御するものである。Java(登録商標)動作環境211においては、現状、ヒープ領域303のサイズはJVM202の起動時に設定しなければならない。そのため、本実施の形態では、JVM202の動作の制御をJVM起動・終了制御部502の管理下に置く必要がある。   The JVM activation / termination control unit 502 controls the operation (activation and termination) of the JVM 202. In the Java (registered trademark) operating environment 211, the size of the heap area 303 must be set when the JVM 202 is activated. Therefore, in the present embodiment, it is necessary to place control of the operation of the JVM 202 under the management of the JVM start / end control unit 502.

Java(登録商標)アプリ中断・再開・中止制御部503は、JVM202によりメモリ不足エラーの発生が検知された場合に、各Java(登録商標)アプリケーション210に自己退避を指示したり、メモリ不足エラーの解消によりJava(登録商標)動作環境が復帰した後に、各Java(登録商標)アプリケーション210に自己復帰を指示したりするものである。   When the occurrence of a memory shortage error is detected by the JVM 202, the Java (registered trademark) application suspend / resume / stop control unit 503 instructs each Java (registered trademark) application 210 to perform self-save or a memory shortage error occurs. After the Java (registered trademark) operating environment is restored by the cancellation, each Java (registered trademark) application 210 is instructed to self-return.

動作環境の退避・復帰制御部504は、メモリ不足エラーの発生が検知された場合に、JVM202およびヒープメモリ管理コントローラ208の実行に使用されている領域のヒープ領域303からの退避、およびJVM202およびヒープメモリ管理コントローラ208の実行に使用する領域のヒープ領域303への復帰を行うものである。   When the occurrence of a memory shortage error is detected, the operating environment save / restore control unit 504 saves the area used for execution of the JVM 202 and the heap memory management controller 208 from the heap area 303, and the JVM 202 and heap The area used for execution of the memory management controller 208 is returned to the heap area 303.

ヒープサイズ管理制御部501(検出手段)は、JVM202を介して、当該JVM202により検知されるメモリ不足エラー、Java(登録商標)アプリケーション210の追加または削除など、ヒープ領域303のサイズの変更要因の発生を検出するものである。   The heap size management control unit 501 (detection means) generates a cause for changing the size of the heap area 303, such as a memory shortage error detected by the JVM 202, or addition or deletion of the Java (registered trademark) application 210 via the JVM 202. Is detected.

また、ヒープサイズ管理制御部501(変更手段)は、ヒープ領域303のサイズの変更要因が検出された場合に、ヒープ領域303のサイズを変更するものである。より具体的には、ヒープサイズ管理制御部501は、メモリ不足エラーをヒープ領域303のサイズの変更要因の発生として検出した場合、想定外のメモリの使用や一時的なメモリリーク状態が発生したケースが考えられるため、ヒープ領域303のサイズを大きくすることで、メモリ不足エラーを回避する。また、ヒープサイズ管理制御部501は、Java(登録商標)アプリケーション210の追加または削除をヒープ領域303のサイズの変更要因の発生として検出した場合、この時点で、ヒープ領域303内においてJava(登録商標)アプリケーション210を実行するために使用される領域が増加または減少することが分かるので、ヒープ領域303のサイズを拡張または縮小する。なお、ヒープサイズ管理制御部501は、ヒープ領域303のサイズの変更要因が検出された場合に、予め設定された基準サイズ毎に、ヒープ領域のサイズを変更するものとする。   Further, the heap size management control unit 501 (changing unit) changes the size of the heap area 303 when a factor for changing the size of the heap area 303 is detected. More specifically, when the heap size management control unit 501 detects a memory shortage error as an occurrence of a change in the size of the heap area 303, an unexpected use of memory or a temporary memory leak has occurred. Therefore, the memory shortage error can be avoided by increasing the size of the heap area 303. In addition, when the heap size management control unit 501 detects addition or deletion of the Java (registered trademark) application 210 as an occurrence of a change factor of the size of the heap area 303, the Java (registered trademark) in the heap area 303 at this time Since it can be seen that the area used to execute the application 210 increases or decreases, the size of the heap area 303 is increased or decreased. It is assumed that the heap size management control unit 501 changes the size of the heap area for each preset reference size when a factor for changing the size of the heap area 303 is detected.

図6は、ヒープ領域のサイズを大きくした後のRAM内のメモリ領域の配置を示す図である。ヒープサイズ管理制御部501は、ヒープ領域303のサイズの変更要因(例えば、メモリ不足エラー、Java(登録商標)アプリケーション210の追加など)が発生した場合、図6に示すように、ネイティブプログラム領域304のメモリ領域を削減し、ヒープ領域303を符号601で示すメモリ領域分増加させる。そして、ヒープ領域303のサイズを大きくすることにより、メモリ不足エラーの回避およびJava(登録商標)アプリケーション210の追加によるメモリ不足の回避を実現する。なお、ネイティブプログラム領域304はOS201の管理下にあるため、ネイティブプログラム領域304内のメモリ領域の残量が少なくなった場合、OS201が、当該OS201が有する機能であるSWAP処理(図7参照)を実行することにより、ネイティブプログラム領域304におけるメモリ不足を回避する。   FIG. 6 is a diagram showing the arrangement of the memory areas in the RAM after increasing the size of the heap area. When a heap size management control unit 501 causes a change in the size of the heap area 303 (for example, a memory shortage error, the addition of a Java (registered trademark) application 210), as shown in FIG. And the heap area 303 is increased by the memory area indicated by reference numeral 601. Then, by increasing the size of the heap area 303, it is possible to avoid a memory shortage error and avoid a memory shortage by adding the Java (registered trademark) application 210. Since the native program area 304 is under the management of the OS 201, when the remaining memory area in the native program area 304 is reduced, the OS 201 performs SWAP processing (see FIG. 7), which is a function of the OS 201. By executing this, a memory shortage in the native program area 304 is avoided.

このように、メモリ不足エラーやJava(登録商標)アプリケーション210の追加によるメモリ不足の回避が実現されることにより、複合機1全体として、エラーが発生しなくなり、複合機1の機能的な問題の発生を無くすことができる。ただし、ヒープ領域303のサイズを大きくすることによりメモリ不足を回避した場合、SWAP処理の頻度によっては、複合機1の性能面に影響を及ぼすことになる。なお、複合機1への性能面の影響が、使用者が許容できる範囲内であれば、問題はない。   As described above, by avoiding a memory shortage error or a memory shortage by adding the Java (registered trademark) application 210, an error does not occur as a whole of the multifunction device 1, and a functional problem of the multifunction device 1 occurs. Generation can be eliminated. However, when the memory shortage is avoided by increasing the size of the heap area 303, the performance of the MFP 1 is affected depending on the frequency of the SWAP processing. Note that there is no problem as long as the influence of the performance on the multifunction device 1 is within a range that can be accepted by the user.

次に、図7を用いて、ヒープ領域303のサイズの変更による複合機1の性能面への影響について説明する。図7は、ヒープ領域のサイズの変更による複合機の性能面への影響を説明するための図である。   Next, the influence on the performance of the multifunction device 1 due to the change in the size of the heap area 303 will be described with reference to FIG. FIG. 7 is a diagram for explaining the influence on the performance of the multifunction device due to the change in the size of the heap area.

ヒープサイズ管理制御部501は、ヒープ領域303のサイズを変更した場合、ヒープ領域303においてJava(登録商標)アプリケーション210の実行に使用されていない未使用領域を回収するガーベージコレクション(以下、GCとする)を任意に発生させる。ヒープ領域303のGCに要する時間は、GC範囲701(ヒープ領域303)が大きくなればなるほど長くなる。そのため、ヒープ領域303のサイズを大きくした場合、GCにより複合機1が停止する時間が発生して当該複合機1の性能を低下させてしまう。   When the size of the heap area 303 is changed, the heap size management control unit 501 performs garbage collection (hereinafter referred to as GC) that collects unused areas that are not used in the execution of the Java (registered trademark) application 210 in the heap area 303. ) Is generated arbitrarily. The time required for GC of the heap area 303 becomes longer as the GC range 701 (heap area 303) becomes larger. For this reason, when the size of the heap area 303 is increased, a time during which the multifunction device 1 is stopped by GC is generated, and the performance of the multifunction device 1 is degraded.

さらに、削減したネイティブプログラム領域304は、上述したように、OS201の管理下にあるため、少ないメモリ領域でもSWAP処理を実行することにより、ネイティブ制御処理プログラム207を実行することができる。しかしながら、SWAP処理は、補助記憶装置であるHDD110に一時的にネイティブプログラム領域304に記憶する内容を退避したり、HDD110からネイティブプログラム領域304に内容を書き戻したりするため、その処理に時間がかかってしまい複合機1の性能を低下させてしまう。   Furthermore, since the reduced native program area 304 is under the management of the OS 201 as described above, the native control processing program 207 can be executed by executing the SWAP process even in a small memory area. However, since the SWAP process temporarily saves the contents stored in the native program area 304 in the HDD 110 as an auxiliary storage device or writes back the contents from the HDD 110 to the native program area 304, the process takes time. As a result, the performance of the multifunction device 1 is reduced.

なお、ヒープサイズ管理制御部501(通知手段)は、操作部109を介して、この性能の低下(例えば、GCまたはSWAP処理に要する処理時間)を基準にして、RAM103のメモリ領域の増設を促す通知を行うものとする。例えば、ヒープサイズ管理制御部501は、GCまたはSWAP処理に要する処理時間により、複合機1のコピー性能が通常の8割以下になった場合に、RAM103のメモリ領域の増設を促す通知を行う。または、ヒープサイズ管理制御部501は、Java(登録商標)アプリケーション210の追加に伴ってヒープ領域303のサイズが多くなり、GCに要する処理時間が所定のサイズのメモリ領域のGCに要する処理時間の2倍以上になった場合に、RAM103のメモリ領域の増設を促す通知を行う。   The heap size management control unit 501 (notification unit) urges the expansion of the memory area of the RAM 103 via the operation unit 109 on the basis of this performance degradation (for example, processing time required for GC or SWAP processing). Notification shall be made. For example, the heap size management control unit 501 makes a notification for urging the expansion of the memory area of the RAM 103 when the copy performance of the multi-function device 1 falls below the normal 80% due to the processing time required for the GC or SWAP processing. Alternatively, the heap size management control unit 501 increases the size of the heap area 303 with the addition of the Java (registered trademark) application 210, and the processing time required for GC is the processing time required for GC of a memory area of a predetermined size. When the number becomes twice or more, a notification for encouraging expansion of the memory area of the RAM 103 is made.

次に、図8を用いて、RAM103のメモリ領域を増設した場合のRAM103内のメモリ領域の配置について説明する。図8は、RAMのメモリ領域を増設した場合のRAM内のメモリ領域の配置を示す図である。メモリ領域増設前のRAM103内のメモリ領域の配置は、図6に示すメモリ領域の配置と同様、ネイティブプログラム領域304のメモリ領域を削減し、ヒープ領域303を符号601で示すメモリ領域分増加させたメモリ領域の配置となっている。一方、メモリ領域増設後のRAM103内のメモリ領域の配置は、削減したネイティブプログラム領域304のメモリ領域が元のサイズ(図3に示すネイティブプログラム領域304のサイズ)に戻り、ヒープ領域303のメモリ領域がメモリ領域の増設前と同じサイズに維持されている。なお、RAM103のメモリ領域をさらに増設することにより、ネイティブプログラム領域304やヒープ領域303により多くの空き領域を持たせることも可能である。   Next, the arrangement of the memory area in the RAM 103 when the memory area of the RAM 103 is increased will be described with reference to FIG. FIG. 8 is a diagram showing the arrangement of the memory areas in the RAM when the RAM area is expanded. Similar to the memory area arrangement shown in FIG. 6, the memory area in the RAM 103 before the memory area expansion is reduced in the native program area 304 and the heap area 303 is increased by the memory area indicated by reference numeral 601. The memory area is arranged. On the other hand, the arrangement of the memory area in the RAM 103 after the expansion of the memory area is such that the memory area of the reduced native program area 304 returns to the original size (the size of the native program area 304 shown in FIG. 3), and the memory area of the heap area 303 Is maintained at the same size as before the expansion of the memory area. Note that it is possible to have more free areas in the native program area 304 and the heap area 303 by further expanding the memory area of the RAM 103.

次に、図9を用いて、ヒープ領域303のサイズの変更要因の発生が検出された場合に、変更するヒープ領域303のサイズを算出する方法の一例について説明する。図9は、ヒープ領域のサイズの算出に用いるアプリケーション定義ファイルを示す図である。   Next, an example of a method for calculating the size of the heap area 303 to be changed when occurrence of a change factor of the size of the heap area 303 is detected will be described with reference to FIG. FIG. 9 is a diagram illustrating an application definition file used for calculating the size of the heap area.

ヒープサイズ管理制御部501は、ヒープ領域303のサイズの変更要因の発生が検出された場合、まず、ヒープ領域303内に配置された各Java(登録商標)アプリケーション領域901から、当該Java(登録商標)アプリケーション領域901に対応するJava(登録商標)アプリケーション210のプログラムサイズ、データサイズ、当該Java(登録商標)アプリケーション210のプログラムを実行するために必要なメモリ容量(ヒープ使用量)など、当該Java(登録商標)アプリケーション210に関する情報を含むアプリケーション定義ファイル902を読み出す。そして、ヒープサイズ管理制御部501は、読み出した各Java(登録商標)アプリケーション210のアプリケーション定義ファイル902に従って、ヒープ領域303のサイズを算出する。   When the occurrence of a change factor in the size of the heap area 303 is detected, the heap size management control unit 501 first starts the Java (registered trademark) from each Java (registered trademark) application area 901 arranged in the heap area 303. ) The Java (registered trademark) application 210 program size and data size corresponding to the application area 901, the memory capacity (heap usage amount) required to execute the Java (registered trademark) application 210 program, etc. The application definition file 902 including information regarding the registered trademark application 210 is read. Then, the heap size management control unit 501 calculates the size of the heap area 303 according to the read application definition file 902 of each Java (registered trademark) application 210.

具体的には、ヒープサイズ管理制御部501は、ヒープ領域303を使用して実行するJava(登録商標)アプリケーション210の数に応じてヒープ領域のサイズを変更する。例えば、1つのJava(登録商標)アプリケーション210を実行するために使用するヒープ領域303内におけるメモリ領域の基準サイズを10MBと定義して、実行するJava(登録商標)アプリケーション210の数分のヒープ領域303のサイズを算出する。したがって、3つのJava(登録商標)アプリケーション210を実行する場合には、30MBのヒープ領域303にサイズを変更する。   Specifically, the heap size management control unit 501 changes the size of the heap area according to the number of Java (registered trademark) applications 210 executed using the heap area 303. For example, by defining the reference size of the memory area in the heap area 303 used to execute one Java (registered trademark) application 210 as 10 MB, heap areas corresponding to the number of Java (registered trademark) applications 210 to be executed The size of 303 is calculated. Therefore, when three Java (registered trademark) applications 210 are executed, the size is changed to the 30 MB heap area 303.

また、ヒープサイズ管理制御部501は、ヒープ領域303を使用して実行するJava(登録商標)アプリケーション210が有する機能のうち、有効な機能の数に応じてヒープ領域303のサイズを変更する。例えば、1つの有効な機能に実行するために使用するヒープ領域303内におけるメモリ領域の基準サイズを2MBと定義して、実行中のJava(登録商標)アプリケーション210が有する有効な機能分のヒープ領域303のサイズを算出する。したがって、3つのJava(登録商標)アプリケーション210が有する有効な機能が、それぞれ「5」,「6」,「4」であった場合、30MBのヒープ領域303にサイズを変更する。   Further, the heap size management control unit 501 changes the size of the heap area 303 according to the number of effective functions among the functions of the Java (registered trademark) application 210 executed using the heap area 303. For example, by defining the reference size of the memory area in the heap area 303 used for executing one effective function as 2 MB, the heap area for the effective function of the Java (registered trademark) application 210 being executed The size of 303 is calculated. Accordingly, when the effective functions of the three Java (registered trademark) applications 210 are “5”, “6”, and “4”, respectively, the size is changed to the 30 MB heap area 303.

さらに、ヒープサイズ管理制御部501は、ヒープ領域303を使用して実行する各Java(登録商標)アプリケーション210のアプリケーション定義ファイル902が示すメモリ容量の総数に応じてヒープ領域303のサイズを変更する。   Further, the heap size management control unit 501 changes the size of the heap area 303 in accordance with the total memory capacity indicated by the application definition file 902 of each Java (registered trademark) application 210 executed using the heap area 303.

なお、本実施の形態では、ヒープサイズ管理制御部501は、上述の算出方法により算出したサイズと、Java(登録商標)動作環境211を実行するために必要なメモリ領域のサイズを合算した値を、変更するヒープ領域303のサイズとして算出するものとする。   In the present embodiment, the heap size management control unit 501 adds a value calculated by adding the size calculated by the above calculation method and the size of the memory area necessary for executing the Java (registered trademark) operating environment 211. The size of the heap area 303 to be changed is calculated.

次に、図10を用いて、Java(登録商標)アプリケーション210の追加または削除が発生した場合のヒープ領域303のサイズの変更処理の流れについて説明する。図10は、Java(登録商標)アプリケーションの追加または削除が発生した場合のヒープ領域のサイズの変更処理の流れを示すフローチャートである。   Next, the flow of processing for changing the size of the heap area 303 when a Java (registered trademark) application 210 is added or deleted will be described with reference to FIG. FIG. 10 is a flowchart showing the flow of heap area size change processing when a Java (registered trademark) application is added or deleted.

Java(登録商標)アプリケーション210の追加または削除が実施されると(ステップS1001)、JVM202からヒープサイズ管理制御部501に対してヒープ領域303のサイズの変更を要求するサイズ変更通知が送信される。すると、ヒープサイズ管理制御部501が、Java(登録商標)アプリケーション210の追加または削除をヒープ領域303のサイズの変更要因の発生として検出するとともに、Java(登録商標)アプリ中断・再開・中止制御部503が、JVM202を再起動させるために、現在実行中のJava(登録商標)アプリケーション210を終了させる(ステップS1002)。続いて、JVM起動・終了制御部502は、JVM202を終了させる(ステップS1003)。   When the Java (registered trademark) application 210 is added or deleted (step S1001), the JVM 202 transmits a size change notification requesting the heap size management control unit 501 to change the size of the heap area 303. Then, the heap size management control unit 501 detects the addition or deletion of the Java (registered trademark) application 210 as the occurrence of the change factor of the size of the heap area 303, and the Java (registered trademark) application suspension / resume / suspend control unit. 503 terminates the currently executing Java (registered trademark) application 210 to restart the JVM 202 (step S1002). Subsequently, the JVM activation / termination control unit 502 terminates the JVM 202 (step S1003).

次に、ヒープサイズ管理制御部501は、上述したヒープ領域303のサイズの算出方法を用いて、変更するヒープ領域303のサイズを算出する(ステップS1004)。なお、ヒープ領域303のサイズの算出方法は、予め任意の算出方法を選定しておくものとする。次いで、ヒープサイズ管理制御部501は、算出したヒープ領域303のサイズを、JVM202の起動設定に再定義することにより、ヒープ領域303のサイズを変更する(ステップS1005)。そして、JVM起動・終了制御部502が、再定義されたJVM202の起動設定に基づいてJVM202を起動するとともに(ステップS1006)、Java(登録商標)アプリ中断・再開・中止制御部503がJava(登録商標)アプリケーション210を起動する(ステップS1007)。   Next, the heap size management control unit 501 calculates the size of the heap area 303 to be changed by using the method for calculating the size of the heap area 303 described above (step S1004). Note that an arbitrary calculation method is selected in advance as a method for calculating the size of the heap area 303. Next, the heap size management control unit 501 changes the size of the heap area 303 by redefining the calculated size of the heap area 303 in the startup setting of the JVM 202 (step S1005). Then, the JVM activation / termination control unit 502 activates the JVM 202 based on the re-defined activation setting of the JVM 202 (step S1006), and the Java (registered trademark) application suspension / resume / cancel control unit 503 performs Java (registration). (Trademark) application 210 is activated (step S1007).

次に、図11を用いて、メモリ不足エラーが発生した場合のヒープ領域303のサイズの変更処理の流れについて説明する。図11は、メモリ不足エラーが発生した場合のヒープ領域のサイズの変更処理の流れを示すフローチャートである。   Next, a flow of processing for changing the size of the heap area 303 when a memory shortage error occurs will be described with reference to FIG. FIG. 11 is a flowchart showing a flow of processing for changing the size of the heap area when a memory shortage error occurs.

JVM202がメモリ不足エラーの発生を検知すると(ステップS1101)、JVM202からヒープサイズ管理制御部501に対してヒープ領域303のサイズの変更を要求するサイズ変更通知が送信される。すると、ヒープサイズ管理制御部501が、メモリ不足エラーをヒープ領域303のサイズの変更要因の発生として検出するとともに、動作環境の退避・復帰制御部504が現在起動中のJava(登録商標)アプリケーション210を退避させる(ステップS1102)。   When the JVM 202 detects the occurrence of a memory shortage error (step S1101), the JVM 202 transmits a size change notification requesting the heap size management control unit 501 to change the size of the heap area 303. Then, the heap size management control unit 501 detects a memory shortage error as the occurrence of a change factor of the size of the heap area 303, and the Java (registered trademark) application 210 that the operating environment save / restore control unit 504 is currently running. Is saved (step S1102).

ここで、現在起動中のJava(登録商標)アプリケーション210を終了させないのは、既にヒープ領域303が足りない状態なので、当該現在起動中のJava(登録商標)アプリケーション210をこれ以上動作させることができないからである。仮に、現在起動中のJava(登録商標)アプリケーション210を終了させるために、当該現在起動中のJava(登録商標)アプリケーション210を動作させた場合、さらに、メモリ不足エラーが発生する。そのため、本実施の形態では、Java(登録商標)動作環境211以外(動作環境の退避・復帰制御部504)からJava(登録商標)アプリケーション210の退避を制御する必要がある。   Here, the reason why the currently activated Java (registered trademark) application 210 is not terminated is that the heap area 303 is already insufficient, so that the currently activated Java (registered trademark) application 210 cannot be operated any more. Because. If the currently activated Java (registered trademark) application 210 is operated in order to terminate the currently activated Java (registered trademark) application 210, a memory shortage error further occurs. Therefore, in this embodiment, it is necessary to control saving of the Java (registered trademark) application 210 from other than the Java (registered trademark) operating environment 211 (operating environment save / restore control unit 504).

現在起動中のJava(登録商標)アプリケーション210の退避が完了すると、JVM起動・終了制御部502が、JVM202を終了させる(ステップS1103)。次に、ヒープサイズ管理制御部501は、上述したヒープ領域303のサイズの算出方法を用いて、変更するヒープ領域303のサイズを算出する(ステップS1104)。なお、ヒープ領域303のサイズの算出方法は、予め任意の算出方法(アプリケーションの数に応じて算出するか、有効機能の数に応じて算出するか、メモリ容量に応じて算出するか、若しくは各アプリケーションが使用中のメモリ領域の何割分増加させるかなど)を選定しておくものとする。次いで、ヒープサイズ管理制御部501は、算出したヒープ領域303のサイズを、JVM202の起動設定に再定義することにより、ヒープ領域303のサイズを変更する(ステップS1105)。そして、JVM起動・終了制御部502が、再定義されたJVM202の起動設定に基づいてJVM202を起動するとともに(ステップS1106)、動作環境の退避・復帰制御部504がJava(登録商標)アプリケーション210を復帰させる(ステップS1107)。   When the saving of the currently activated Java (registered trademark) application 210 is completed, the JVM activation / termination control unit 502 terminates the JVM 202 (step S1103). Next, the heap size management control unit 501 calculates the size of the heap area 303 to be changed by using the above-described method for calculating the size of the heap area 303 (step S1104). In addition, the calculation method of the size of the heap area 303 may be an arbitrary calculation method (calculation according to the number of applications, calculation according to the number of effective functions, calculation according to the memory capacity, Select what percentage of the memory area the application is using, etc.). Next, the heap size management control unit 501 changes the size of the heap area 303 by redefining the calculated size of the heap area 303 in the startup setting of the JVM 202 (step S1105). Then, the JVM activation / termination control unit 502 activates the JVM 202 based on the re-defined activation setting of the JVM 202 (step S1106), and the operating environment save / restore control unit 504 activates the Java (registered trademark) application 210. Return (step S1107).

このように、本実施の形態にかかる複合機1によれば、メモリ不足エラーやJava(登録商標)アプリケーション210の追加または削除など、ヒープ領域303のサイズの変更要因を検出した場合に、ヒープ領域303のサイズを変更することにより、Java(登録商標)動作環境において、複合機1の状態に応じて適切にヒープ領域303を確保することができるので、メモリの有効性の維持およびGCによる複合機1の性能への影響を抑えることができる。   As described above, according to the MFP 1 according to the present embodiment, when a change factor of the size of the heap area 303 such as a memory shortage error or the addition or deletion of the Java (registered trademark) application 210 is detected, the heap area By changing the size of 303, the heap area 303 can be appropriately secured in the Java (registered trademark) operating environment in accordance with the state of the multifunction device 1, so that the validity of the memory is maintained and the multifunction device by GC is used. The influence on the performance of 1 can be suppressed.

なお、上記実施の形態では、本発明の画像形成装置を、コピー機能、プリンタ機能、スキャナ機能およびファクシミリ機能のうち少なくとも2つの機能を有する複合機に適用した例を挙げて説明するが、複写機、プリンタ、スキャナ装置、ファクシミリ装置等の画像形成装置であればいずれにも適用することができる。   In the above embodiment, the image forming apparatus according to the present invention is described by taking an example in which the image forming apparatus is applied to a multifunction machine having at least two functions among a copy function, a printer function, a scanner function, and a facsimile function. The present invention can be applied to any image forming apparatus such as a printer, a scanner apparatus, and a facsimile apparatus.

1 複合機
103 RAM
204 Java(登録商標)アプリケーションA
205 Java(登録商標)アプリケーションB
206 Java(登録商標)アプリケーションC
210 Java(登録商標)アプリケーション
303 ヒープ領域
501 ヒープサイズ管理制御部
902 アプリケーション定義ファイル
1 MFP 103 RAM
204 Java (registered trademark) application A
205 Java (registered trademark) application B
206 Java (registered trademark) application C
210 Java (registered trademark) application 303 Heap area 501 Heap size management control unit 902 Application definition file

特許第4170988号公報Japanese Patent No. 4170988

Claims (8)

記憶媒体が有するメモリ領域のうち、アプリケーションの実行に使用するヒープ領域のサイズの変更要因の発生を検出する検出手段と、
前記検出手段により前記変更要因の発生が検出された場合に、前記メモリ領域における前記ヒープ領域のサイズを変更する変更手段と、
を備えたことを特徴とする画像形成装置。
Detecting means for detecting occurrence of a change factor of a size of a heap area used for executing an application among memory areas of a storage medium;
Changing means for changing the size of the heap area in the memory area when occurrence of the change factor is detected by the detecting means;
An image forming apparatus comprising:
前記検出手段は、前記アプリケーションの追加または削除を前記変更要因の発生として検出することを特徴とする請求項1に記載の画像形成装置。   The image forming apparatus according to claim 1, wherein the detection unit detects addition or deletion of the application as occurrence of the change factor. 前記検出手段は、前記ヒープ領域の不足によるメモリ不足エラーを前記変更要因の発生として検出することを特徴とする請求項1または2に記載の画像形成装置。   The image forming apparatus according to claim 1, wherein the detection unit detects a memory shortage error due to a shortage of the heap area as the occurrence of the change factor. 前記変更手段は、前記アプリケーションの追加または削除を前記変更要因の発生として検出した場合に、前記ヒープ領域を使用して実行する前記アプリケーションの数に応じて前記ヒープ領域のサイズを変更することを特徴とする請求項2に記載の画像形成装置。   The changing means changes the size of the heap area according to the number of the applications to be executed using the heap area when the addition or deletion of the application is detected as the occurrence of the change factor. The image forming apparatus according to claim 2. 前記変更手段は、前記アプリケーションの追加または削除を前記変更要因の発生として検出した場合に、前記ヒープ領域を使用して実行する前記アプリケーションが有する機能のうち、有効な機能の数に応じて前記ヒープ領域のサイズを変更することを特徴とする請求項2に記載の画像形成装置。   The changing means detects the addition or deletion of the application as the occurrence of the change factor, and the heap according to the number of effective functions among the functions of the application executed using the heap area. The image forming apparatus according to claim 2, wherein the size of the area is changed. 前記ヒープ領域には、実行する前記各アプリケーションを実行するために必要なメモリ容量を示すアプリケーション定義ファイルが記憶され、
前記変更手段は、前記アプリケーションの追加または削除を前記変更要因の発生として検出した場合に、実行する前記各アプリケーションの前記アプリケーション定義ファイルが示すメモリ容量の総数に応じて前記ヒープ領域のサイズを変更することを特徴とする請求項2に記載の画像形成装置。
In the heap area, an application definition file indicating a memory capacity necessary for executing each application to be executed is stored,
The change unit changes the size of the heap area according to the total memory capacity indicated by the application definition file of each application to be executed when the addition or deletion of the application is detected as the occurrence of the change factor. The image forming apparatus according to claim 2.
前記変更手段は、前記メモリ不足エラーを前記変更要因の発生として検出した場合に、予め設定された基準サイズ毎に、前記ヒープ領域のサイズを変更することを特徴とする請求項1から6のいずれか一に記載の画像形成装置。   The change means changes the size of the heap area for each preset reference size when the memory shortage error is detected as the occurrence of the change factor. An image forming apparatus according to claim 1. 前記ヒープ領域のサイズの変更後、前記ヒープ領域のガーベージコレクションまたはSWAP処理に要する処理時間を基準にして、前記記憶媒体のメモリ領域の増設を促す通知を行う通知手段をさらに備えたことを特徴とする請求項1から7のいずれか一に記載の画像形成装置。   It further comprises notification means for notifying the expansion of the memory area of the storage medium based on the processing time required for garbage collection or SWAP processing of the heap area after changing the size of the heap area. The image forming apparatus according to claim 1.
JP2009195981A 2009-08-26 2009-08-26 Image forming apparatus Expired - Fee Related JP5446602B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009195981A JP5446602B2 (en) 2009-08-26 2009-08-26 Image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009195981A JP5446602B2 (en) 2009-08-26 2009-08-26 Image forming apparatus

Publications (2)

Publication Number Publication Date
JP2011048590A true JP2011048590A (en) 2011-03-10
JP5446602B2 JP5446602B2 (en) 2014-03-19

Family

ID=43834848

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009195981A Expired - Fee Related JP5446602B2 (en) 2009-08-26 2009-08-26 Image forming apparatus

Country Status (1)

Country Link
JP (1) JP5446602B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013146252A1 (en) * 2012-03-30 2013-10-03 日本電気株式会社 Software lifespan extension timing establishment system, software lifespan extension timing establishment method, and program
US9930201B2 (en) 2016-03-25 2018-03-27 Kyocera Document Solutions Inc. Image forming apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11110281A (en) * 1997-10-06 1999-04-23 Canon Inc Image forming device and memory management method
JP2006285871A (en) * 2005-04-04 2006-10-19 Canon Inc Information processor, control method, program, and storage medium
JP2009512936A (en) * 2005-10-20 2009-03-26 マイクロソフト コーポレーション Load balancing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11110281A (en) * 1997-10-06 1999-04-23 Canon Inc Image forming device and memory management method
JP2006285871A (en) * 2005-04-04 2006-10-19 Canon Inc Information processor, control method, program, and storage medium
JP2009512936A (en) * 2005-10-20 2009-03-26 マイクロソフト コーポレーション Load balancing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013146252A1 (en) * 2012-03-30 2013-10-03 日本電気株式会社 Software lifespan extension timing establishment system, software lifespan extension timing establishment method, and program
US9930201B2 (en) 2016-03-25 2018-03-27 Kyocera Document Solutions Inc. Image forming apparatus

Also Published As

Publication number Publication date
JP5446602B2 (en) 2014-03-19

Similar Documents

Publication Publication Date Title
JP2008077144A (en) Virtualization system, memory management method and control program
JP2009266210A (en) Data protection method, device and storage device
JP2014032582A (en) Image processing apparatus, control method and program of storage device of image processing apparatus
EP2613514A2 (en) Image forming apparatus and method of booting image forming apparatus having hibernation function
US20150134892A1 (en) Information processing apparatus, method of controlling the same, and storage medium
JP6524928B2 (en) Image processing apparatus, memory control program and memory control method
JP2014164352A (en) Image forming device, image processing method, and program
JP2014026373A (en) Information processing device, control method for information processing device, and program
JP5446602B2 (en) Image forming apparatus
US9442843B2 (en) Information processing apparatus, method of controlling the same, and storage medium
US8745428B2 (en) Method for clock gating a DSP when not in use
US8972764B2 (en) Information processing apparatus, method, and storage medium
JP2012173814A (en) Information processing device and control method for controlling the same
KR100994723B1 (en) selective suspend resume method of reducing initial driving time in system, and computer readable medium thereof
JP2012058930A (en) Image forming apparatus, and energy conservation management method and energy conservation management program
JP2018063676A (en) Information processing device, control method thereof, and program
JP2011034305A (en) Image forming device, method of controlling generation of garbage collection function, program, and storage medium
JP4830747B2 (en) Information processing system, information processing apparatus, and external evacuation apparatus
JP6459543B2 (en) Image forming apparatus, job processing control method, and job processing control program
JP2005258967A (en) Data processor
JP5444960B2 (en) Information processing apparatus, data migration method, and recording medium
JP2023086217A (en) Information processing device and method of controlling the same
JP2023021707A (en) Information processing device, control method of information processing device, and program
JP2017078930A (en) Image forming apparatus and program
JP6459570B2 (en) Image forming apparatus, activation control method, and activation control program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120607

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130924

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131120

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131216

R151 Written notification of patent or utility model registration

Ref document number: 5446602

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees