Problem of memory size
I developed an applet which permits to see some 3D object (from a VRML file).
When the source file is light (between 1 to 4 MB), there is not problem, but if its size is 15MB for example, nothing appears !
With a normal java program, I would have to add -Xmx?m (ex: java -Xmx150m viewer), but with an applet, I don't know to solv this problem ...
Thanks for advance !
ps : sorry for my english's level, I'm french.
If you only need to pass the parameter thats no problem.
In the java control panel you have the possibility to specify parameter (same as with the command line) for applets.
Similar Messages
-
Hi,URGENT--Memory size of binary Increasing due to multithreading in Pro*C
I got stuck in Multhithreading in PRO*C.
Memory size of my binary keeps on increasing.
Flow is like this.
My main thread spawns multiple threads of two types of threads. Both types of threads connect to different dbs.
In other words, i need to have multiple connections with to different db's i.e. configure multiple threads for same.
For this i take sql context variable in each thread and pass it to connect_to_db func. for connection. Then that thread use corresponding sql context variable for pl/sql function( CHANGE_INPUT) call.
This keeps of memory size of my binary inceasing.
In above code T_ABILLITY_INPUT is of object type whose ott converted header and out type file is already included.
CHANGE_INPUT is pls/sql function
Can any help me out in using multithreading in pro*c.
It's very-very URGENT, This is creating problem in live site.
Thaks in Advance
Code for process and connect_to_db function is same for both types of threads different is in object types to get process
sample code of connect_to_db
int connect_to_db(char username, char password, char dbname,sql_context ctx,char *ErrorMessage)
int ret;
char ConnString[50] = {0,};
sprintf(ConnString, "%s@%s", username, dbname);
EXEC SQL WHENEVER SQLERROR DO sql_error("ORACLE error--", ErrorMessage);
EXEC SQL ENABLE THREADS;
EXEC SQL CONTEXT ALLOCATE :*ctx;
EXEC SQL CONTEXT USE :*ctx;
EXEC SQL CONNECT :ConnString IDENTIFIED BY :password;
if(sqlca.sqlcode < 0)
return -1;
return 0;
sample code for pl/sql function call
int process(double num,char Flag,char dbName,char dbExtApp,char dbExtUname,char *
dbExtRef,sql_context ctx, char *err)
T_ABILLITY_INPUT *typAbilityInputObj;
T_ABILLITY_INPUT_ind *typAbilityInputObj_ind;
T_ABILLITY_INPUT *typAbilityInputObj2;
T_ABILLITY_INPUT_ind *typAbilityInputObj2_ind;
//declaration of some host variables
int iretVal=0;
char extUser[255];
char extApp[255];
char extRef[30];
char us[ABREF_LENGTH];
char app[ABREF_LENGTH];
char ref[ABREF_LENGTH];
memset(extUser,'\0',sizeof(extUser));
memset(extApp,'\0',sizeof(extApp));
memset(extRef,'\0',sizeof(extRef));
memset(us,'\0',ABREF_LENGTH);
memset(app,'\0',ABREF_LENGTH);
memset(ref,'\0',ABREF_LENGTH);
EXEC SQL CONTEXT USE :ctx;
EXEC SQL OBJECT CREATE :typAbilityInputObj:typAbilityInputObj_ind;
EXEC SQL OBJECT CREATE :typAbilityInputObj2:typAbilityInputObj2_ind;
EXEC SQL OBJECT SET EXTERNAL_USER,EXTERNAL_APPLICATION,EXTERNAL_REFERENCE OF : typAbili
tyInputObj TO :extUser, :extApp, :extRef;
EXEC SQL CALL CHANGE_INPUT(:typAbilityInputObj,:typAbilityInputObj2) into iretVal;
EXEC SQL OBJECT GET EXTERNAL_USER,EXTERNAL_APPLICATION,EXTERNAL_REFERENCE FROM :typAbil
ityInputObj2 INTO :us, :app, :ref;
EXEC SQL OBJECT UPDATE :typAbilityInputObj;
EXEC SQL OBJECT UPDATE :typAbilityInputObj2;
EXEC SQL OBJECT RELEASE :typAbilityInputObj;
EXEC SQL OBJECT RELEASE :typAbilityInputObj2;
EXEC SQL OBJECT DELETE :typAbilityInputObj;
EXEC SQL OBJECT DELETE :typAbilityInputObj2;
EXEC SQL COMMIT;
EXEC SQL OBJECT CACHE FREE ALL;
}This must be my last last thing. AHT was on an iMac I bought in 2009. It was included on my "disk 2" along with several other applications. When I wiped and installed the full Lion, AHT was gone. Same is true for the full Mountain Lion installation media. It does not have AHT. I'm not at all sure how to get it back from Apple.
I was able to find it on my SL disc 2 and extract it again from that. Disc 2 won't install on Mountain Lion (the packages are too out of date) but the AHT pkg does.
Since you have it, consider packing it up and keeping it safe. Maybe someone who knows AHT better than I can elaborate on AHT. From what I've seen, you get it when your mac ships but if you ever wipe and reinstall the OS, you lose it. -
Can't find free space for Shared Memory (Size=83739 KB)
Hello All,
I have an issue. i am unable to bring up the server. It is ABAP system.
dev_w0 log file show me memory error.
I Fri May 01 10:11:55 2009
I *** ERROR => [MapOsShm] Can't find free space for Shared Memory (Size=83739 KB)
[shmnt.c 2174]
I *** ERROR => [AttachOsShm] MapViewOfFile(Key=62,Handle=0x000003FC) failed with Err=0
[shmnt.c 2174]
I *** ERROR => ShmCreate: Attach (62,85748608,2) failed [shmnt.c 422]
Can some body help me with it.
Thanks and regards
KiranI am running into the same issue. What exactly solved your problem?
I will really appreciate any info., around this.
i am trying to install CE 7.2 Developer Workplace on Windows 32 bit.
Saurabh -
Endeca Server: RuntimeException: Unable to load physical or total virtual memory size
Hey!
I've got a problem with Endeca Server. After i had some problems with Studio, EndecaServer kept getting a Runtime Exception. When i try to create a Data Domain I get this error:
The Endeca Server returned an error: OES-000075: Caught exception when starting Endeca Server: java.lang.RuntimeException: Unable to load total physical memoery size or total virtual memory size
and in the Server console it says:
<23.01.2014 10:59 Uhr MEZ> <Error> <com.endeca.opmodel.ws.ManagePortImpl> <OES-0
00066> <OES-000066: Service error: com.endeca.endeca_server.manage._2.ManageFaul
t: OES-000075: Caught exception when starting Endeca Server: java.lang.RuntimeEx
ception: Unable to load total physical memoery size or total virtual memory size
com.endeca.endeca_server.manage._2.ManageFault: OES-000075: Caught exception wh
en starting Endeca Server: java.lang.RuntimeException: Unable to load total phys
ical memoery size or total virtual memory size
at com.endeca.opmodel.ws.ManagePortImpl.defaultManageException(ManagePor
tImpl.java:116)
at com.endeca.opmodel.ws.ManagePortImpl.checkCluster(ManagePortImpl.java
:124)
at com.endeca.opmodel.ws.ManagePortImpl.createDataDomain(ManagePortImpl.
java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime.processMessage(Ser
viceEndpointRuntime.java:370)
at oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime.processMessage(Ser
viceEndpointRuntime.java:202)
at oracle.j2ee.ws.server.jaxws.JAXWSRuntimeDelegate.processMessage(JAXWS
RuntimeDelegate.java:474)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing
(ProviderProcessor.java:1187)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementatio
n(WebServiceProcessor.java:1112)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(
ProviderProcessor.java:581)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServicePr
ocessor.java:233)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcess
or.java:193)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java
:485)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:301)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at com.endeca.util.ChangeHeaderFilter.doFilter(ChangeHeaderFilter.java:5
0)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at com.endeca.util.TimingFilter.doFilter(TimingFilter.java:72)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at com.endeca.router.RoutingServlet.doFilter(RoutingServlet.java:227)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:31
5)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUt
il.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.jav
a:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:1
71)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:13
9)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.wrapRun(WebAppServletContext.java:3730)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.lang.Exception: OES-000075: Caught exception when starting Endec
a Server: java.lang.RuntimeException: Unable to load total physical memoery size
or total virtual memory size
... 47 more
every time i start Server and everytime i try to create or check a Data Domain.
Can someone help me?
regards,
AlexI reinstalled the VM and now it works again. It was on a Win2008 Server with 8Gb Ram. It first worked but then I somehow crashed studio and after that Server never worked again, even after reinstalling everything.
-
MSI Mainboard S-775 X48 - Problems with memory, i think
MSI Mainboard S-775 X48
INTEL Core 2 Quad Q6700 2.67GHz
MSI GeForce 9800GTX 512MB GDDR3
OCZ TECH DDR3 4GB ( OCZ TECH DDR3 PC3-12800 1600MHz Platinum XTC Dual Channel 2GB Kit(2x1024MB) 7-7-7 (OCZ3P16002GK))
THERMALTAKE 750W ToughPower
Hello.
I have bought a new computer a week ago.
First time i started the computer, two of the light diodes on the ram slot 3 and 4 was red. And have been ever since.
The bios was on default, and the computer freezez now and then, maybe every hour or something. I tried to take out the 3 and 4 memory module and set the memory volt on 1.9. And everything worked very fine.
So i tought maybe i should innstall the other two again. And now the computer is just unstable, artifacts in games, suddenly's restart's m.m.
i know its something about "spd" ,but that its way over my league.
So my questions, what is the right numbers to fill inn. ? and is it because of the memroy i have this problems?
Appriciate all the help, and sorry for bad english.
is this good enough?
Memory Frequency 534.0 MHz (1:2)
CAS# 7.0
RAS# to CAS# 6
RAS# Precharge 6
Cycle Time (tRAS) 15
Command Rate 1T
Quote
CPU-Z version 1.45
Processors Map
Number of processors 1
Number of threads 4
Processor 0
-- Core 0
-- Thread 0
-- Core 1
-- Thread 0
-- Core 2
-- Thread 0
-- Core 3
-- Thread 0
Processors Information
Processor 1 (ID = 0)
Number of cores 4 (max 4)
Number of threads 4 (max 4)
Name Intel Core 2 Quad Q6700
Codename Kentsfield
Specification Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz
Package Socket 775 LGA (platform ID = 4h)
CPUID 6.F.B
Extended CPUID 6.F
Core Stepping G0
Technology 65 nm
Core Speed 2670.2 MHz (10.0 x 267.0 MHz)
Rated Bus speed 1068.1 MHz
Stock frequency 2666 MHz
Instructions sets MMX, SSE, SSE2, SSE3, SSSE3, EM64T
L1 Data cache 4 x 32 KBytes, 8-way set associative, 64-byte line size
L1 Instruction cache 4 x 32 KBytes, 8-way set associative, 64-byte line size
L2 cache 2 x 4096 KBytes, 16-way set associative, 64-byte line size
FID/VID Control yes
FID range 6.0x - 10.0x
max VID 1.263 V
Features , VT
Chipset
Northbridge Intel X48 rev. 01
Southbridge Intel 82801IR (ICH9R) rev. 02
Graphic Interface PCI-Express
PCI-E Link Width x16
PCI-E Max Link Width x16
Memory Type DDR3
Memory Size 4096 MBytes
Channels Dual (Symmetric)
Memory Frequency 534.0 MHz (1:2)
CAS# 7.0
RAS# to CAS# 6
RAS# Precharge 6
Cycle Time (tRAS) 15
Command Rate 1T
Memory SPD
DIMM #1
General
Memory type DDR3
Module format UDIMM
Manufacturer (ID) OCZ (7F7F7F7FB0000000)
Size 1024 MBytes
Max bandwidth PC3-10700F (667 MHz)
Part number OCZ3P16001G
Manufacturing date Week 28/Year 07
Attributes
Number of banks 8
Nominal Voltage 1.50 Volts
EPP no
XMP no
Timings table
Frequency (MHz) 476 571 667 762 857
CAS# 5.0 6.0 7.0 8.0 9.0
RAS# to CAS# delay 5 6 8 9 9
RAS# Precharge 5 6 8 9 9
TRAS 15 18 21 23 26
TRC 20 24 28 32 36
DIMM #2
General
Memory type DDR3
Module format UDIMM
Manufacturer (ID) OCZ (7F7F7F7FB0000000)
Size 1024 MBytes
Max bandwidth PC3-10700F (667 MHz)
Part number OCZ3P16001G
Manufacturing date Week 28/Year 07
Attributes
Number of banks 8
Nominal Voltage 1.50 Volts
EPP no
XMP no
Timings table
Frequency (MHz) 476 571 667 762 857
CAS# 5.0 6.0 7.0 8.0 9.0
RAS# to CAS# delay 5 6 8 9 9
RAS# Precharge 5 6 8 9 9
TRAS 15 18 21 23 26
TRC 20 24 28 32 36
DIMM #3
General
Memory type DDR3
Module format UDIMM
Manufacturer (ID) OCZ (7F7F7F7FB0000000)
Size 1024 MBytes
Max bandwidth PC3-10700F (667 MHz)
Part number OCZ3P16001G
Manufacturing date Week 28/Year 07
Attributes
Number of banks 8
Nominal Voltage 1.50 Volts
EPP no
XMP no
Timings table
Frequency (MHz) 476 571 667 762 857
CAS# 5.0 6.0 7.0 8.0 9.0
RAS# to CAS# delay 5 6 8 9 9
RAS# Precharge 5 6 8 9 9
TRAS 15 18 21 23 26
TRC 20 24 28 32 36
DIMM #4
General
Memory type DDR3
Module format UDIMM
Manufacturer (ID) OCZ (7F7F7F7FB0000000)
Size 1024 MBytes
Max bandwidth PC3-10700F (667 MHz)
Part number OCZ3P16001G
Manufacturing date Week 28/Year 07
Attributes
Number of banks 8
Nominal Voltage 1.50 Volts
EPP no
XMP no
Timings table
Frequency (MHz) 476 571 667 762 857
CAS# 5.0 6.0 7.0 8.0 9.0
RAS# to CAS# delay 5 6 8 9 9
RAS# Precharge 5 6 8 9 9
TRAS 15 18 21 23 26
TRC 20 24 28 32 36
Hardware monitor
Fintek F71882F hardware monitor
Voltage sensor 0 3.33 Volts [0xD0] (+3.3V)
Voltage sensor 1 1.23 Volts [0x9A] (CPU VCORE)
Voltage sensor 2 0.31 Volts [0x27] (VIN2)
Voltage sensor 3 0.98 Volts [0x7B] (VIN3)
Voltage sensor 4 0.97 Volts [0x79] (VIN4)
Voltage sensor 5 1.10 Volts [0x89] (VIN5)
Voltage sensor 6 1.51 Volts [0xBD] (VIN6)
Voltage sensor 7 3.33 Volts [0xD0] (VSB3V)
Voltage sensor 8 3.20 Volts [0xC8] (VBAT)
Temperature sensor 0 40°C (103°F) [0x28] (TMPIN0)
Temperature sensor 1 37°C (98°F) [0x25] (TMPIN1)
Temperature sensor 2 49°C (120°F) [0x31] (TMPIN2)
Fan sensor 0 2019 RPM [0x2E7] (FANIN0)
Hardware monitor
Intel Core 2 Quad Q6700 hardware monitor
Temperature sensor 0 44°C (111°F) [0x38] (core #0)
Temperature sensor 1 42°C (107°F) [0x3A] (core #1)
Temperature sensor 2 38°C (100°F) [0x3E] (core #2)
Temperature sensor 3 36°C (96°F) [0x40] (core #3)
Dump hardware monitor
Hardware monitor
GeForce 9800 GTX hardware monitor
Temperature sensor 0 58°C (136°F) [0x3A] (GPU Core)I think you are going to need to go into the bios and manually set the memory voltage and the memory settings.
Try setting the memory voltage in the bios to 1.9 and then manually set the memory settings to 7-7-7-20 and see if that works. If not; then change the memory settings 8-8-8-21 and see if that helps. You might also need to up the northbridge voltage a notch or two since you are running memory in all four slots.
Psy -
XP Pro shared memory size of Intel GM45 on L305-S5905
The laptop's Vista Home Premium was recently replaced with XP SP3.
All is well, with one smaller (1GB) issue.
I am fairly certain (not 100%) i had changed the shared memory in Vista to 128MB (i only do basic 2D desktop stuff, nothing that would need more memory), however in XP all i can see is in Video settings is on Adapter tab it shows 1024MB for the graphics card, which would explain why the XP booting with Physical Address Extension only shows 2.87GB free out of the 4GB total.
Does anyone know where intel is hiding the ability to change the shared memory size, i don't seem to get nowhere with googling around for it. I would certainly rather have the memory available for applications than waste it on doing nothing.
I am looking at the intel driver since there is no option to set memory size in BIOS either.
Thanks in advance for your help,
Danielwindows xp are seeing only 3 G of Ram memory...vista can see a lot more of ram ....i intal window Xp on my laptop and have the same probleme...a instal vista ultimatum end now i can use all the memery...i search a lot of forum and the sead theat xp cand see up to 4 G of ram...but it's nat true......and the video driver is configuretet to use 1760MB the maximum video card memory...i'm looking for a program to change the memoory of the video card..but tiil now i didn'f find anyfing...
-
Java HttpSession Object Memory Size in Tomcat
Hi,
Is it possible to measure the size of a single session attribute [Any Object Let say String Object].
How Tomcat stores the HttpSessionObject in its memory.
Is it beneficial to have one object in session with say 7 String member variables than seven sessions. If it is then what is the estimated memory size difference in above scenario?you can try this:
open your connection outside the function, and then pass it like as a parameter...
writePicture(OutputStream out, String siteID, Connection conn)
this can solve the problem because opening the connection inside the function spends a lot of memory...
Hope this can help you
Regards
Fernando -
Very large memory size in process window
I am new to the Mac OS X and in Windows, win explorer never takes any more than 100mb of memory in my processes window, why is it that when i am only surfing one site or no sites but safari is running on the dock, that my memory size is >256mb?! That is just a little to much memory for one program to be taking up considering I only have 512mb.
Hello Applesr4eva:
Welcome to Apple discussions.
This is a very good knowledge base article that discusses OS X memory utilization:
http://docs.info.apple.com/article.html?artnum=107918
Don't compare Windows with OS X. OS X uses sophisticated algorithms to manage both real and virtual memory resources. My advice to you would be to forget it unless you are having performance problems. I am running a G4 with 512 MB and it does not breathe hard unless I use processor intensive applications (rare for me in my home computing environment).
Barry -
[Athlon64] K8MM-V - Memory Size
Hi,
I have a K8MM-V with a AMD Samperon 64bit (3000+) CPU and am wondering about the max memory size for it.
The website says that it handles 2GB of DDR400. I have 2x1GB DDR400 chips and the BIOS only sees 1.5GB as does Windows.
The memory have Samsung chips and are of the same time. What is wrong? Or did I not set something correctly?
Bios is at ver1.3. The memory is set to AUTO. So I am not sure what is going onMemory banks, You know you can get double sided memory modules.
So if you installed a double sided module you could not use dimm slot 2.
Each dimm slot has 2 memory address lines so you can access both sides at the same time and use double sided modules.
So
dimm slot 1 = bank 0 and Bank 1
dimm slot 2 = bank 2 and Bank 3
dimm slot 3 = bank 4 and Bank 5
Since there are over hundreds types of memory modules and they are using different type of DRAMs to build them, it is very possible that you have purchased a (cheap) memory module which is not compatible with your computer.
For example, there might be 3-4 different types of 128MB memory modules and some computers are very picky and can only support 1 type or 2 types of 128MB memory modules. If it is incompatible, then usually you will not be able to boot up your system or you will see frozen screen or system might only recognize half of the memory size. This issue adresses to very low compatibility, because memory maker use several configuration.
Maybe you can try setting memory to "SPD"
Edit here: try using only one stick at a time, if they are reconized alone as 1 GB the problem will remain in the very low compatibility issue, and maybe you want to buy some others ram stick from another chip maker, maybe Geil, or Corsair. -
How to adjust shared video memory size - R10/R600 Win7 Prof 32bit
Hi,
I use two laptops in business - R600 and R10. Both with Intel 4500 graphic card and shared video memory. Both win Windows 7 Professional 32 bit. In both cases system reserves 1159MB for video memory. As I don't play any games I have no need to waste such a huge memory amount - I would like to free as much as possible for system and programs.
For trial purposes I installed Win 7 Ultimate 64bit. Surprisingly it reserves only 199MB for video memory - so it looks like OS issue.
Does anybody know how can I decrease the video memory size in Windows 7 32bit?
Regards,
pab 567As far as I know this cannot be done manually and shared memory is controlled by system.
If you dont use it for gaming I dont see any problem there. I dont know what kind of activity you do with your notebook but I cannot imagine there is no enough memory for every day activities.
Is there not enough power for certain operations or what? -
How to get a java card memory size info ?
Hi everyone ,
I want to get my card's memory size and free memory size .I appreciate it if anyone could help me with these questions :
1 . Is there any way to find out card's defferrent memories size (EEPROM , ROM , RAM , FLASH) from Get Data command or any other apdu commands ?
2 . is there any function in the API which we could use to reach memory size within an applet ? I found a function named GetMemorryAccessInstance in JCRE 2.2.2 API but I need something more global for all API versions .
3 . Which Memories size information do we have access to ?
Best Regards,
ShemeineHi Shemeine,
Some cards have proprietary APDU's to find the free memory on a card. Even on cards that have such an APDU, you may have to have it enabled when the card is produced.
As for a way to find it programatically, you can use:
JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_PERSISTENT);
JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_TRANSIENT_DESELECT);
JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_TRANSIENT_RESET);The problem with these is they return a signed short. This will only show up to 32KB of free memory. If you have more than this, you will have to allocate some memory using new byte[32*1024] until you start seeing results less than 32KB. You then work out how many blocks of 32KB you had to allocate to reach this state. The types of memory you can find are self explanatory.
Cheers,
Shane -
Problem with Cell size in Excel output of XML report
Dear all,
I am facing a problem with cell size when i run my XML report in Excel output. I found that it imitates the cell size of whatever i gave in the RTF. I cannot increase the cell size in RTF as my report contains 60 columns and max width of MS Word table is 22 inches.
Can any one suggest a way of doing this which shows full data in Excel sheet depending on the column data size with out any word wrap.
Thanks
RAJHi ,
You can try with
<xsl:attribute xdofo:ctx="block" name="wrap-option">no-wrap</xsl:attribute>
may be helpful to you
Thanks,
Ananth
http://bintelligencegroup.wordpress.com/ -
How to Increase the memory size of a File in the Application Server
Hello Abaper's
I have generated a XML file for the data of internal table (with 10 Records). When i download , i can see the XML file for the Entire 10 Records.
But , while transferring the XML file to Applicationserver , it's transferring only upto max 4 Records.I assume that the memory is insufficient to allocate 10 Records. Can we Increase the Memory size of the File on Application server. OR, is there any error in My Source Code.
Code i used to Transfer the XML File to Application server.
OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE.
IF sy-subrc EQ 0.
LOOP AT it_xmltab INTO wa_xmltab.
TRANSFER wa_xmltab TO FNAME.
ENDLOOP.
ELSE.
MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
ENDIF.
CLOSE DATASET FNAME.
Regards
JvHi,
DATA : filename TYPE rlgrap-filename.
DATA : doc_name TYPE char30.
DATA : bin_size TYPE i.
SELECT matnr matkl meins
FROM mara INTO TABLE it_mara
UP TO 10 ROWS.
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
i_filename = filename
i_xml_doc_name = doc_name
IMPORTING
pe_bin_filesize = bin_size
TABLES
i_tab_sap_data = it_mara " contains 10 Records
CHANGING
i_tab_converted_data = it_xmltab.
placing XML File in Appl. Server
DATA : FNAME(60) VALUE 'xyz_File'.
DATA : num TYPE i.
DATA : xmldata(256) TYPE x.
For Writing The data in Application Server
OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE. " ENCODING DEFAULT.
IF sy-subrc EQ 0.
LOOP AT it_xmltab INTO wa_xmltab.
TRANSFER wa_xmltab TO FNAME.
ENDLOOP.
ELSE.
MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
ENDIF.
CLOSE DATASET FNAME.
For Reading The data in Application Server
OPEN DATASET FNAME FOR INPUT IN BINARY MODE. " ENCODING DEFAULT.
DO.
IF sy-subrc EQ 0.
READ DATASET fname INTO xmldata.
WRITE :/ xmldata.
Clear xmldata.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET FNAME.
at runtime i can see
it_mara --> contain 10 records
it_xmltab --> contain 7 lines (Each line size is 255 char). This table have XML format data, (unknow format , with all numeric
digits)
it_xmltab is trasferred to application server , but the xml format is generated upto 4 records, and for the remaining records
the XML format is not generated.
the XML data in application server file is
<?xml version="1.0"?><TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY1</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">PC
</MEINS>
</TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY2</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">
PC </MEINS>
</TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000001</MATNR><MEINS Datatype="C" Length="6">EA</MEINS>
</TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000002</MATNR
Regards
JV -
Jdbc sender channel memory size issue
Hi Experts,
We are facing the below error in connect to jdbc sender channel from XI . Could anyone of you suggest me the right action to be taken in this regard.
Database-level error reported by JDBC driver while executing statement 'select * from*********where posted = '0''. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The system is out of memory. Use server side cursors for large result sets:Java heap space. Result set size:614,143,127. JVM total memory size:1,031,798,784.'. For details, contact your database server vendor.
Appreciate your quick help.
Thanks & Regards,
Ranganath.Regulate the number of records returned by Select statement for permanent fix.
Few more things....
a)If you want to select only some fields, then dont use Select * from table. Rather specify select a,b,c from tablename
b) specify some flag in the table so that read some records each time and in the update statement update the flag for those records already read. So that you will not reread the same records in the next message.
Hope you understand.
c) Increasing java heap size is temporary fix. -
Is it possible to config memory size for a process?
Dear experts,
I would like to control the memory size assigned for a process on Solaris 9. Can i config memory size assigned for process??
Many thanks,
ShunYou can use ulimit/limit to assign a bound on the amount of space that a process and its children can allocate.
I'm not sure if that's what you're asking though.
Darren
Maybe you are looking for
-
Data reconciliation from 2 datatargets to a new data taget
Hello Gurus, I have a requirement of reconciling data from 2 data targets to a new data target, any suggestions are appreciated. The Scenario is as follows: Cube1 is in key figure model Cube 2 is accounting model Each account in Cube2 corresponds to
-
After a one week logout and shutdown my macpro 1,1 laptop running OSx 10.6.8 shows a black screen at startup attempts. The battery is fully charged and both resetting the power manager and zapping the PRAM have failed to permit startup. What else ca
-
I recently dropped my ipod touch 32GB 3rd gen. which i had to restore. I was successful to an extent meaning i got most of my songs back minus my apps. but my real issue is that i can't connect to the internet as my ipod says "no wi-fi", the wi-fi ic
-
I want cover flow back! I can't copy and paste album art work anymore! So sad! Don't like new itune 11. How can I restore the previous verson?
-
Saving JSP report output as a file on the application server
I am trying to determine if it is possible to save a web based JSP report to the file system in the same way you can with a report generated via the rwservlet command. I am specifying DESTYPE=HTML and DESNAME=/home/mydirectory/abc.htm on the command