How to calculate the size of the heap memory? its urgent pls
i had a task in which i need to calculate the size of the heap memory can anybody help me its urgent pls
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
Specifically:
max/total/freeMemory()
http://javaalmanac.com/egs/java.lang/GetHeapSize.html?l=new
Similar Messages
-
Revision: 10545
Author: [email protected]
Date: 2009-09-23 13:33:21 -0700 (Wed, 23 Sep 2009)
Log Message:
Make DataGrid smarter about when and how to calculate the modulefactory for its renderers when using embedded fonts
QE Notes: 2 Mustella tests fail:
components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_columns_halo datagrid_properties_columns_increase0to1_halo
components/DataGrid/DataGrid_SparkSkin/Properties/datagrid_properties_columns datagrid_properties_columns_increase0to1
These fixes get us to measure the embedded fonts correctly when going from 0 columns to a set of columns so rowHeight will be different (and better) in those scenarios
Doc Notes: None
Bugs: SDK-15241
Reviewer: Darrell
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/browser/DataGrid
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-15241
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/DataGrid.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridBase .as
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/dataGridClasses/DataGridColu mn.asHi Matthias,
Sorry, if this reply seems like a products plug (which it is), but this is really how we solve this software engineering challenge at JKI...
At JKI, we create VI Packages (which are basically installers for LabVIEW instrument drivers and toolkits) of our reusable code (using the package building capabilities of VIPM Professional). We keep a VI Package Configuration file (that includes a copy of the actual packages) in each of our project folders (and check it into source code control just as we do for all our project files). We also use VIPM Enterprise to distribute new VI Packages over the network.
Also, as others have mentioned, we use the JKI TortoiseSVN Tool to make it easy to use TortoiseSVN directly from LabVIEW.
Please feel free to contact JKI if you have any specific questions about these products.
Thanks,
-Jim -
Delete duplicate entriess from the internal table its urgent pls help.
Hi friends,
Hope everybody is doing good,Here is m query on delete duplicate data from the intenal table.
I have an internal table which contain data in the following format.
Doc No Comp Cod Vendor Assignment
1500000009 JM11 00000000
1500000008 JM11 20070212(Repeating)
1500000007 JM11 20070212
1500000006 JM11 00000000
1500000005 JM11 00000000
1500000004 JM11 00000000(Repeating)
1500000003 JM11 00000000 (Repeating)
1500000002 JM11 00000000
1500000001 JM11 20050302
1500000000 JM11 00000000
1500000003 JM11 10000088
1500000001 JM11 10000088
1500000030 JM11 10006260
1500000010 JM11 10006269
1500000008 JM11 10006269
1500000006 JM11 10006269
1500000004 JM11 10006269
if you see the document numbers,there are some document number which are repeating here,there are some document numer which contain vendor number but not the assignments,some of the document numbers contain the assignments but not the vendors.
If my internal table contain this kind of data with repeted document numbers than i want the document number which contains only the vendor number.
Pls help me with the appropriate logic,its urgent.
Thanks a lot
mrutyun^Hi,
<u><b>Deleting Adjacent Duplicate Entries</b></u>
To delete adjacent duplicate entries use the following statement:
DELETE ADJACENT DUPLICATE ENTRIES FROM <itab>
[COMPARING <f1> <f2> ...
|ALL FIELDS].
The system deletes all adjacent duplicate entries from the internal table <itab>. Entries are
duplicate if they fulfill one of the following compare criteria:
Without the COMPARING addition, the contents of the key fields of the table must be
identical in both lines.
If you use the addition COMPARING <f1> <f2> ... the contents of the specified fields <f1>
<f2> ... must be identical in both lines. You can also specify a field <fi> dynamically as
the contents of a field <ni> in the form (<ni>). If <ni> is empty when the statement is
executed, it is ignored. You can restrict the search to partial fields by
specifying offset and length.
If you use the addition COMPARING ALL FIELDS the contents of all fields of both lines
must be identical.
You can use this statement to delete all duplicate entries from an internal table if the table is
sorted by the specified compare criterion.
If at least one line is deleted, the system sets SY-SUBRC to 0, otherwise to 4.
Examples
DATA: BEGIN OF LINE,
COL1 TYPE I,
COL2 TYPE I,
END OF LINE.
DATA ITAB LIKE HASHED TABLE OF LINE WITH UNIQUE KEY COL1.
DO 4 TIMES.
LINE-COL1 = SY-INDEX.
LINE-COL2 = SY-INDEX ** 2.
INSERT LINE INTO TABLE ITAB.
ENDDO.
LINE-COL1 = 1.
DELETE TABLE ITAB: FROM LINE,
WITH TABLE KEY COL1 = 3.
LOOP AT ITAB INTO LINE.
WRITE: / LINE-COL1, LINE-COL2.
ENDLOOP.
The output is:
2 4
4 16
The program fills a hashed table with a list of square numbers. The DELETE
statement delete the lines from the table where the key field COL1 has the contents 1 or 3.
Regards,
Bhaskar -
How to calculate the size of web forms in hyperion planning?
Hi Experts,
I am trying to calculate the size of planning forms in Hyperion smart view., but i am unable to find out the way to calculate.
Can you pls explain how to calculate the size of web form in Smart view?
--- Srini.Hi Srini,
First, here is what Oracle says:
Data Form Size Estimation:
To get a rough estimate of data form size, open the data form and select File > Save As from the browser. The size of the .HTML file is the portion of the data form that changes based on grid size. The .JS files remain the same size and can be cached, depending on browser settings. Information such as data form definitions, pages, and .gif files are not compressed when data forms are opened and sent to the Web browser.
I have not been able to find out using their method.
In any case, you can find out the size of grid by using below
1. Right click on the form grid and click "View source"
2. Save the source file as "Example.html"
3. Right click the saved file and click "Properties"
4. The Form size whould be same as that of file..
Let me know if it helps.
Cheers
RS -
Hi,
I am having a table of 4 column. First column is varchar2(10), Second column is Number(5), Third column is char(10) and Fourth column is Number(12,2).
Now how to calculate the size of each row. I want to know how much space it will take for each row.
Thanx & Regards,
SwarupFor a complete discussion of storage requirements for different datatypes see the Oracle 8i Concepts manual.
All Oracle documentation is available on-line via the 'Documentation' link on the OTN home page.
Your Col2 NUMBER(5) will take 4 bytes if it holds a 5 digit positive or negative number.
Your Col4 NUMBER(12,2) will take 7 bytes if it holds a number with 12 digits that is positive and will take 8 bytes if it holds a number with 12 digits that is negative.
The following is from the Concepts manual Chapter 12 (Copyright by Oracle)
Built-In Datatypes 12-9
Internal Numeric Format
Oracle stores numeric data in variable-length format. Each value is stored in
scientific notation, with one byte used to store the exponent and up to 20 bytes to
store the mantissa. The resulting value is limited to 38 digits of precision. Oracle
does not store leading and trailing zeros. For example, the number 412 is stored in a
format similar to 4.12 x 10 2 , with one byte used to store the exponent (2) and two
bytes used to store the three significant digits of the mantissa (4, 1, 2). Negative
numbers include the sign in their length.
Taking this into account, the column size in bytes for a particular numeric data
value NUMBER ( p), where p is the precision of a given value, can be calculated
using the following formula:
ROUND((length( p)+ s)/2))+1
where s equals zero if the number is positive and s equals 1 if the number is
negative.
Zero and positive and negative infinity (only generated on import from Version 5
Oracle databases) are stored using unique representations. Zero and negative
infinity each require one byte; positive infinity requires two bytes.
null -
How to set the heap size of JVM
please let me know that how to set the heap size of JVM
C:\>java -X
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by ;>
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and zip/jar files separated by ;>
append to end of bootstrap class path
-Xbootclasspath/p:<directories and zip/jar files separated by ;>
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xbatch disable background compilation
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xrunhprof[:help]|[:<option>=<value>, ...]
perform JVMPI heap, cpu, or monitor profiling
-Xdebug enable remote debugging
-Xfuture enable strictest checks, anticipating future default
-Xrs reduce use of OS signals by Java/VM (see documentation)look at the -Xm? lines
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap sizeThis can be used e.g. like this:java -Xms8M -Xmx32M MyProgwhich runs MyProg in a java VM with the initial heap size of 8 MB and a maximum heap size of 32 MB.
- Marcus -
How to increase the heap size of the container in whioch BPEL is running ?
Hi All,
I recently raised an SR they have asked me to do the following,
Can you please try and start the container running the BPEL process with max
heap space (-Xmx) of 2 GB and the eden space (-Xmn) at about 60% of 1228m and
the option -XX:+AggressiveHeap set. (even though this option is recommended for
multi processor machines say 4)
can anyone kindly explain me how to increase the Heap size and Eden size of BPEL container ?
Thank YouHi Deepak I cant see any attribute or element in the oc4j_opmn.xml file regarding heap memory. In the server properties I changed the size of heap memeory how can I rollback.
I am getting the following error
Configuration information
Running in C:\product\10.1.3.1\OracleAS_1
Operation mode:Startup, App Server, No Enterprise Manager, Single Instance
Oracle home:C:\product\10.1.3.1\OracleAS_1
Oracle home name:Unnamed
Instance name:SOA.01hw117905.India.TCS.com
Instance type:allProducts
Version:10.1.3.4.0
Uses infrastructure:false
Not an infrastructure instance, no infrastructure information available
Components:[j2ee, apache, orabpel, oraesb, owsm, Wsil]
2009-08-19 09:08:51.863--Begin log output for Mid-tier services (SOA.01hw117905.India.TCS.com)
2009-08-19 09:08:51.863--Processing Step: starting OPMN
2009-08-19 09:09:00.394--Processing Step: starting OPMN managed processes
2009-08-19 09:09:35.19--End log output for Mid-tier services (SOA.01hw117905.India.TCS.com)
An unknown OPMN error has occured
oracle.appserver.startupconsole.model.ConsoleException: An unknown OPMN error has occured
at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:121)
at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
at oracle.appserver.startupconsole.control.GroupController.doStart(GroupController.java:47)
at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
at oracle.appserver.startupconsole.view.controller.ControllerAdapter.start(ControllerAdapter.java:30)
at oracle.appserver.startupconsole.view.controller.MasterControlAdapter.run(MasterControlAdapter.java:94)
at oracle.appserver.startupconsole.view.Runner.main(Runner.java:39)
Caused by: oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
at oracle.ias.opmn.optic.AbstractOpmnEntity.runCommand(AbstractOpmnEntity.java:174)
at oracle.ias.opmn.optic.AbstractOpmnEntity.start(AbstractOpmnEntity.java:110)
at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:89)
... 6 more
Exception caused by
Error from opmn during process control operation
oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
at oracle.ias.opmn.optic.AbstractOpmnEntity.runCommand(AbstractOpmnEntity.java:174)
at oracle.ias.opmn.optic.AbstractOpmnEntity.start(AbstractOpmnEntity.java:110)
at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:89)
at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
at oracle.appserver.startupconsole.control.GroupController.doStart(GroupController.java:47)
at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
at oracle.appserver.startupconsole.view.controller.ControllerAdapter.start(ControllerAdapter.java:30)
at oracle.appserver.startupconsole.view.controller.MasterControlAdapter.run(MasterControlAdapter.java:94)
at oracle.appserver.startupconsole.view.Runner.main(Runner.java:39)
<?xml version='1.0' encoding='WINDOWS-1252'?>
<response>
<msg code="-82" text="Remote request with weak authentication.">
</msg>
<opmn id="01hw117905:6200" http-status="206" http-response="2 of 3 processes started.">
<ias-instance id="SOA.01hw117905.India.TCS.com">
<ias-component id="default_group">
<process-type id="home">
<process-set id="default_group">
<process id="172" pid="2176" status="Alive" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~home~default_group~1.log" operation="request" result="success">
<msg code="0" text="">
</msg>
</process>
</process-set>
</process-type>
<process-type id="oc4j_soa">
<process-set id="default_group">
<process id="173" pid="5556" status="Stopped" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~oc4j_soa~default_group~1.log" operation="request" result="failure">
<msg code="-21" text="failed to start a managed process after the maximum retry limit">
</msg>
</process>
</process-set>
</process-type>
</ias-component>
<ias-component id="HTTP_Server">
<process-type id="HTTP_Server">
<process-set id="HTTP_Server">
<process id="171" pid="2724" status="Alive" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\HTTP_Server~1.log" operation="request" result="success">
<msg code="0" text="">
</msg>
</process>
</process-set>
</process-type>
</ias-component>
</ias-instance>
</opmn>
</response> -
How to calculate table size given the structure.
Today i was asked how to estimate the size of the table given th transactions,.
table has 90 column all varchar(10)
How to calculate the size of table which has no data.
Message was edited by:
Maran.Ehi,
SQL> create table test as select * from all_objects ;
Table created.
SQL> create table test1 as select * from all_objects where 1 = 2 ;
Table created.
sql>select segment_name,bytes/1024/1024 "size", blocks
from dba_segments
where segment_name in ('TEST','TEST1')
SEGMENT_NAME
size BLOCKS
TEST1
.0625 8
TEST
6 768regards
Taj -
How to calculate the HFM Cube size in SQL Server-2005
Hi
How to calculate the HFM Cube size in SQL Server-2005 ?
Below query used for Oracle. Then what is query for SQL Server?
SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'FINANCIAL_%' and owner='HFM';
SUM(BYTES/1024/1024)
SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'HSV FINANCIAL%' and owner='HFM';
SUM(BYTES/1024/1024)
Regards
SmileeWhat is your objective? The subcube in HFM is a concept which applies to the application tier - not so much to the database tier. The size of the subcube is the unique number of data strips (data values for January - December inclusive, for example) for the given entity, currency triplet or Parent.Child node. You have to account for parent accounts and customs which don't exist in the database but are generated in RAM in the application tier.
So, if your objective is to find the largest subcubes, you could do this by querying the database and counting the number of records per entity/value (DCE tables) or parent.child entity combination (DCN tables). I'm not versed in SQL, but I think the script below would just tell you the schema size and not the subcube sizes.
Check out Accelatis.com for a third party software product that can do this for you. The feature is called the Subcube Analyzer and was written by the same team that wrote HFM, so they ought to know how this works :-)
--chris -
Does anyone know if there is a decent algorithm/method to calculate the shared pool size in Oracle 8.1.7.
look my answer on your thread about db cache size
How to Calculate the DB Block Buffer value. -
How to calculate the size each PSA request or all PSA for the Datasources?
Hi All,
Can anybody tell me how to calculate the size of each PSA Request or all PSA's requests for all datasources?
Regards,
RajeshHi ,
PSA technical name can be found as,
1)Right click on your Data Target,go to Display dataflow,click on the PSA ,here you can find the technical name.
2)Goto RSRV tcode>PSA Table>Consistency between PSA Partitions and SAP Administration-->Give your Infosoure name,it gives u PSA technical name also,
Thanks&Regards,
Praveena. -
How to increase the heap space size -is there any parameter to pass to JVM
I created a memory buffering module which can be use to buffer log records and write to hard disk.disk writing is done by a separate thread so the main application won't be delayed. and memory for new errors are allocated dynamically. when i test this it gave this exception Exception in thread "Thread-62" java.lang.OutOfMemoryError: Java heap space then I test 100,000 of log records at a time and sleep the thread for 1 second to let the garbage collector do its job this works fine. but when i increase the log records count further it gave the above error. so i want to know whether is there a way to give the heap memory size to the VM as a parameter before running it.
I created a memory buffering module which can be use to buffer log records and write to hard disk.disk writing is done by a separate thread so the main application won't be delayed. and memory for new errors are allocated dynamically. when i test this it gave this exception Exception in thread "Thread-62" java.lang.OutOfMemoryError: Java heap space then I test 100,000 of log records at a time and sleep the thread for 1 second to let the garbage collector do its job this works fine. but when i increase the log records count further it gave the above error. so i want to know whether is there a way to give the heap memory size to the VM as a parameter before running it.
-
Ck11n:how to calculate the Quantity?
Dear all.
I use the tcode ck11n to create material cost estimate with quality structure.
And input the parameter like below:
Material = 600000-000000-0012
plant = 1000
Costing Variant = PPC1
Costing Lot Size = 1
After press return,the sap show the Itemization for material like below:
20.11.2008 Dynamic List Display 1
Itemization for material 600000-000000-0012 in plant 1000
Material 600000-000000-0012
Plant 1000
Costing Variant PPC1 Standard Cost Est. (Mat.)
Costing Version 1
Costing Date from-to 01.12.2008 - 31.12.9999
Lot Size 1 KARCarton
Cost Base 1 KARCarton
Cost of Goods Manufactured
ItmNo
ItemCat
Resource
Cost Eleme
Total
Fixed
Currncy
Quantity
Un
1
E
J0103033 WC1 A03
1001
14,400.00
7,200.00
CNY
3,600
CAR
2
E
J0103033 WC1 A01
1001
25,200.00
10,800.00
CNY
3,600
CAR
3
E
J0103033 WC1 A02
1001
14,400.00
7,200.00
CNY
3,600
CAR
4
E
J0103033 WC1 A04
1001
14,400.00
7,200.00
CNY
3,600
CAR
5
E
J0103033 WC1 A05
1001
14,400.00
7,200.00
CNY
3,600
CAR
6
M
1000 600000-000000-0013
40000002
9.00
0.00
CNY
3
CAR
7
G
CC_AT01 41000001
41000001
2.25
0.00
CNY
82,811.25
39,600.00
CNY
At the first line,the Resource was "J0103033 WC1 A03",and the Quantity was "3600".
I don't know why the Quantity was "3600" or where the Quantity come from?
So I need someone tell me how to calculate the Quantity?
Thank you so much.
Regards
YodaHi,
Pl note the Item Category, " M "- Material - The 3 quantity has been picked up from BOM correctly.
You are referring to Quantity 3600, which is against item category - E. Item category " E" means Internal activity allocation i.e the date flows through assignment to Routing. Check the Work center, Cost center & Activity types J0103033 WC1 A03 1001.
Now i think it is clear.
Cheers !
Siva
Cost of Goods Manufactured
ItmNo ItemCat Resource Cost Eleme Total Fixed Currncy Quantity Un
1 E J0103033 WC1 A03 1001 14,400.00 7,200.00 CNY 3,600 CAR
2 E J0103033 WC1 A01 1001 25,200.00 10,800.00 CNY 3,600 CAR
3 E J0103033 WC1 A02 1001 14,400.00 7,200.00 CNY 3,600 CAR
4 E J0103033 WC1 A04 1001 14,400.00 7,200.00 CNY 3,600 CAR
5 E J0103033 WC1 A05 1001 14,400.00 7,200.00 CNY 3,600 CAR
6 M 1000 600000-000000-0013 40000002 9.00 0.00 CNY 3 CAR
7 G CC_AT01 41000001 41000001 2.25 0.00 CNY -
How to calculate the unit for RATE?
Hey All,
I am not sure if there is something standard for this or not.
I am calculating the 'Rate' by using 'Value/Amount' and 'Quantity' as follows -
Rate == Value / Quantity
I need to calculate the unit for the rate as below -
Rate unit == Value unit (Currency) / Quantity unit (Base_uom)
(for example -
if value is 1000 USD and quantity is 10 TO then Rate should come out as 100 USD / TO)
Could anyone please suggest how to calculate the unit in this case?
Many Thanks!
TanuHi,
Go through the below link it may give some idea
http://help.sap.com/saphelp_nw04/Helpdata/EN/19/1d7abc80ca4817a72009998cdeebe0/content.htm
Regards,
Marasa. -
How to calculate the Current APC (Acquisition and Production Cost)
Hi,
Please help me how to calculate the Current APC.
The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line Acquisition Value and column Posted values.
I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic.
Please help me.
Thanks in advance,
SatishHi,
you'll find the logic in fm FI_AA_VALUES_CALCULATE
A.
Maybe you are looking for
-
Create View without inbound, outbound and navigation link
Please look at this picture: There are: + PanelView + View 01 + View 02 + EmptyView In the PanelView, there are two buttons, button01 and button02. When press on button01, it shows View01; when press on button02, it shows View02. Problem is: How to
-
Are you using Withholding Tax in R12........
Hi all, A question to anyone using Withholding Tax in EBS R12-..or, to put it another way is anyone using Withholding Tax in EBS R12? We are using it and we have encountered a big issue – for each invoice that has AWT two payments are being generated
-
Is there a way to use a bookmark from Maps as the home/work address of a contact?
I'm trying to use location-based reminders. But the Home and Work addresses I have in my own contact card are not recognized by Apple Maps. Is there a way to use Apple Maps to set the Home and Work addresses in my contact card to something that it wi
-
I have some requirement in COOIS. In production order out of all operations ( With different work center for Each operation) my requirement is that, I need to see all orders where opeartions with workcenter A AND (Not OR) workcenter B are partial
-
Opening a .daa file?
Is there anyway to open a .daa file I have on my mac. I have tried looking in VT, Google and searching apple support but no luck. Help please..?