How to get statistics (or precise data) about cpu speed and RAM
My problem is I want to determine the CPU speed of the computer is running the applet.
I know there's no way to obtain in a simply (and standar) way this property, so I've thinked about generating statistic methods for do it (something like executing a loop a defined iterations)
My doubt is what to put inside this loop, beacuse I would like to know just not CPU speed (or satistics about it), I need also free RAM statistics, so I've thinked there would be some specific java instructions to give a relationship of these data I need.
My question is if someone has done (or has thinked about) this kind of classes before me, and can tell me what is the best way to make the same.
Tanks
http://www.javaworld.com/javaworld/javaqa/2002-11/01-qa-1108-cpu.html
http://java.sun.com/products/jdk/1.2/docs/guide/jvmpi/jvmpi.html#hprof-cpu
Similar Messages
-
How to get the plsql table data into output cursor
Hi,
Could anybody please help me.
Below is an example of the scenario..
CREATE OR REPLACE PACKAGE chck IS
PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR);
TYPE get_rec is record (ename varchar2(20),
eno number(12));
TYPE t_recs IS TABLE OF get_rec INDEX BY BINARY_INTEGER;
emp_tab t_recs;
END chck;
CREATE OR REPLACE PACKAGE BODY chck AS
PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR)
is
BEGIN
select ename, eno
bulk collect into emp_tab
from emp;
open oc_result_cursor for select * from table(emp_tab); -- I believe something is wrong here ....
END;
END chck;
the above package is giving me an error:
LINE/COL ERROR
10/29 PL/SQL: SQL Statement ignored
10/43 PL/SQL: ORA-22905: cannot access rows from a non-nested table
item
let me know what needs to be changed
Thanks
Manjumanjukn wrote:
once i get the data into a plsql table, how to get this plsql table data into the cursor?There is no such thing as a PL/SQL table - it is an array.
It is nothing at all like a table. It cannot be indexed, partitioned, cluster, etc. It does not exist in the SQL engine as an object that can be referenced. It resides in expensive PGA memory and needs to be copied (lock, stock and barrel) to the SQL engine as a bind variable.
It is an extremely primitive structure - and should never be confused as being just like a table.
Its use in SQL statements is also an exception to the rule. Sound and valid technical reasons need to justify why one want to push a PL/SQL array to the SQL engine to run SELECT 's against it. -
How to get the user entered data?
Hi all,
I have created an HTMLB DynPage component.
In That i have created my input screen with textboxes using response.write method.
i have added one onConfirm event on which the data whould validate.
so onConfirm method im trying to get the data with request.getParameter method which returns null...
how to do...how to get the user entered data to do my validations...can anyone plz advice.
Thanks,
ViswesHi
inputfield or textbox component entered directly using response.write(...) are not htmlb , but html.
to create portal input field (ie HTMLB), you should do something like
this in the doProcessBeforeOutput member function
InputField field1 = new InputField("Id1");
field1.setSize(8); // 8 characters
this.getForm().addComponent(field1);
and in doProcessAfterInput member function
InputField field1 =
(InputField) this.getComponentByName("Id1");
you can then manipulate the content of the field.
Hope this help,
Guillaume -
How to get ArrayCollection's total data after filter
after i use filterFunction to filter data of some
ArrayCollection. so how to get the total original data of this
ArrayCollection?
NOT use filterFunction = null, because i use the filter data
to show at the same time!
thank you!You can get the underlying array by accessing the
ArrayCollection's "source". -
How to get length of a data field
Hi Experts,
How to get length of a data field. For example data field /BIC/0COSTCENTER length is 9. and the entry in the table is /BIC/0COSTCENTER = 1000 only. How to get the lenth of value in the table.
Any help greatly appreciated. Thanks.
Best Regards,
Suresh.Below is example code
Data: var1(10) type c value '2500',
var2 type i.
var2 = Strlen( var1 ).
write var2.
<b>Reward Points for helpful answers</b>
Satish -
How can get difference between 2 dates in the form of days
how can get difference between 2 dates in the form of days
Hi,
Check the following program:
REPORT ZDATEDIFF.
DATA: EDAYS LIKE VTBBEWE-ATAGE,
EMONTHS LIKE VTBBEWE-ATAGE,
EYEARS LIKE VTBBEWE-ATAGE.
PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
exporting
i_date_from = FROMDATE
i_date_to = TODATE
I_FLG_SEPARATE = ' '
IMPORTING
E_DAYS = EDAYS
E_MONTHS = EMONTHS
E_YEARS = EYEARS.
WRITE:/ 'Difference in Days ', EDAYS.
WRITE:/ 'Difference in Months ', EMONTHS.
WRITE:/ 'Difference in Years ', EYEARS.
INITIALIZATION.
FROMDATE = SY-DATUM - 60.
Regards,
Bhaskar -
How to get group when the data source from system instead of UME database
Hig guys,
How to get group when the data source comes from backend system instead of UME database?
I tried to use
IUMPrincipal RefGroup = WPUMFactory.getGroupFactory().getGroup(groupName);
But I was not able to get the group. But in "UserAdministrator", I can find this groupName.
Which kind of API can I use?
Thanks in advance!
Regards,
Liying
Message was edited by:
Liying WangOk,
try this:
com.sapportals.portal.security.usermanagement.IGroupFactory ep5GroupFactory = userManagementService.getGroupFactory();
IGroupFactory groupFactory = UMFactory.getGroupFactory();
com.sap.security.api.IGroup group = groupFactory.getGroupByUniqueName(groupName);
IUMPrincipal ep5Principal = ep5GroupFactory.getEP5Group(group);
This should do the trick,
Romano
PS: and thanks for the stars! -
I lost my iphone, how to get back all the data is there?
Thank you for explain kappy..
how if I want to get my skype message? is it can ? help me.. -
How to get an email when data got inserted
Hi All,
Could you please let me know how to get an email when data got inserted into table by using sql/plsql
Thanks in adavanceCould you please let me know how to get an email when data got inserted into table by using sql/plsql
Well that seems pretty straightforward - write some pl/sql to send you an email when that pl/sql inserts data into a table.
See this Oracle-base article for an example of sending mail.
http://www.oracle-base.com/articles/misc/email-from-oracle-plsql.php
Post what you have tried so far. What part of what you have tried doesn't seem to be working? -
How can get back my backup data from an external element ?
How can get back my backup data from an external element ?
See the section titled "restoring data from Time Machine backups" in this Apple support article; that should get you going.
http://support.apple.com/kb/ht1427
Regards. -
How to get Po item Delivery Date ?
who can tell me how to get PO Item Delivery Date ?
Thank You!hi
good
go through these links,hope these ll help you to solve your probelm
http://web.mit.edu/sapr3/windocs/bpors03m.htm
http://www.sap.com/southafrica/services/education/pdf/BPP.pdf
thanks
mrutyun^ -
How to get days between two dates
Hi ,
How to get days between two dates.
Regards,
Ramesh.Hi Ramesh,
REPORT ZDATEDIFF.
DATA: EDAYS LIKE VTBBEWE-ATAGE,
EMONTHS LIKE VTBBEWE-ATAGE,
EYEARS LIKE VTBBEWE-ATAGE.
PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
exporting
i_date_from = FROMDATE
i_date_to = TODATE
I_FLG_SEPARATE = ' '
IMPORTING
E_DAYS = EDAYS
E_MONTHS = EMONTHS
E_YEARS = EYEARS.
WRITE:/ 'Difference in Days ', EDAYS.
WRITE:/ 'Difference in Months ', EMONTHS.
WRITE:/ 'Difference in Years ', EYEARS.
INITIALIZATION.
FROMDATE = SY-DATUM - 60. -
how to get reading list in my all my devices and computer (window 7). i have installed ios 6 on iphone and icloud control panel on both PC's (home and office) but i dont get updated reading list on all my devices.
Hi bluegrandpanash,
Thanks for visiting Apple Support Communities.
If you backed up your iPhone to iCloud before updating the software, first try the steps under "Restore from an iCloud backup" in this article to recover your data:
iOS: Back up and restore your iOS device with iCloud or iTunes
http://support.apple.com/kb/HT1766
Best Regards,
Jeremy -
I am not able to access the "Settings" on my iPad 3. I just get a gray screen for about 30 seconds and then the app shuts down. I am also unable to access the App store, iTunes, or any app requiring an internet connection. Any thoughts?
First, try a system reset. It cures many ills and it's quick, easy and harmless...
Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo. Ignore the "Slide to power off" text if it appears. You will not lose any apps, data, music, movies, settings, etc.
If the Reset doesn't work, try a Restore. Note that it's nowhere near as quick as a Reset. Connect via cable to the computer that you use for sync. From iTunes, select the iPad/iPod and then select the Summary tab. Follow directions for Restore and be sure to say "yes" to the backup. You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod. Again, say "yes." -
have an ipod and then got the wife an iphone4. all passwords are screwed up. she can not access playstore cuz she doesn't have password. i can not get find any help on how to get or update a password for the ipod. and then get her a separate password for her iphone. we need to save her photos, music, etc to ? icloud and the phone stuff to verizon cloud? so when she gets her new Iphone6 she can have all her "stuff" back on the new phone. hope this makes sense. please offer suggestions here or at [email protected] thanks for your help!
Oh no! I'm sorry to see there's a lot of confusion here and data shared, x-rayDon. We can definitely work to fix. This happens when two devices share the same Apple ID, so she will need to reset hers. She can do so by assessing this link Apple - My Apple ID. You will need to decide who will keep the account if want separate Apple IDs since purchases cannot be shared unless you do Family Sharing.
RobinD_VZW
Follow us on twitter @VZWSupport
Maybe you are looking for
-
I downloaded the latest Firefox. In trying to learn some of the new features, I hit the Full Screen option. It went to full screen and now I do not have access to the functions I need. I can't do anything! I need to find out how to undo my mistake or
-
How to Compare 2 CSV file and store the result to 3rd csv file using PowerShell script?
I want to do the below task using powershell script only. I have 2 csv files and I want to compare those two files and I want to store the comparision result to 3rd csv file. Please look at the follwingsnap: This image is csv file only. Could you pl
-
Is there a way to have one workspace with two monitors?
In Maverick is there a way to return to the system were you have 1 workspace and two monitor? Where at present there is this tendency for applications to auto hide partially.
-
OWB Transfer Wizard: deploy pl\sql in DB?
What happend if I don't select NO in the "Deploy PL\SQL in the DB" transfer parameter? because after I execute the script generated by OWB I haven't measur in the measure folder. Please someone help: Thanks in advance.
-
How can I have the Time Machine animated wallpaper as my desktop background?
I really love the animated stars when you go in the time machine app. Is there a way to have this as your desktop background? I've found and tested a few apps that do this (animated desktop pictures), but I really want the time machine animation. I'v